|
StarPU Internal Handbook
|
#include <starpu.h>Go to the source code of this file.
Functions | |
| void | _starpu_set_worker_status (struct _starpu_worker *worker, enum _starpu_worker_status st) |
| void | _starpu_set_local_worker_status (enum _starpu_worker_status st) |
| enum _starpu_worker_status | _starpu_get_local_worker_status (void) |
| unsigned | _starpu_worker_may_perform_blocking_calls (void) |
This type describes in which state a worker may be.
| void _starpu_set_worker_status | ( | struct _starpu_worker * | worker, |
| enum _starpu_worker_status | st | ||
| ) |
Specify what the local worker is currently doing (eg. executing a callback). This permits to detect if this is legal to do a blocking call for instance.
| enum _starpu_worker_status _starpu_get_local_worker_status | ( | void | ) |
Indicate what type of operation the worker is currently doing.
| unsigned _starpu_worker_may_perform_blocking_calls | ( | void | ) |
It is forbidden to do blocking calls during some operations such as callback or during the execution of a task. This function indicates whether it is legal to call a blocking operation in the current context.