|
@@ -51,6 +51,10 @@ struct starpu_sched_policy **starpu_sched_get_predefined_policies();
|
|
|
|
|
|
void starpu_worker_get_sched_condition(int workerid, starpu_pthread_mutex_t **sched_mutex, starpu_pthread_cond_t **sched_cond);
|
|
void starpu_worker_get_sched_condition(int workerid, starpu_pthread_mutex_t **sched_mutex, starpu_pthread_cond_t **sched_cond);
|
|
|
|
|
|
|
|
+/* This function must be called to wake up a worker that is sleeping on the cond.
|
|
|
|
+ * It returns 0 whenever the worker is not in a sleeping state */
|
|
|
|
+int starpu_wakeup_worker(int workerid, starpu_pthread_cond_t *cond, starpu_pthread_mutex_t *mutex);
|
|
|
|
+
|
|
int starpu_worker_can_execute_task(unsigned workerid, struct starpu_task *task, unsigned nimpl);
|
|
int starpu_worker_can_execute_task(unsigned workerid, struct starpu_task *task, unsigned nimpl);
|
|
|
|
|
|
int starpu_push_local_task(int workerid, struct starpu_task *task, int back);
|
|
int starpu_push_local_task(int workerid, struct starpu_task *task, int back);
|