Types and functions for the task queue.
More...
#include <pthread.h>
#include <hwloc.h>
#include "error.h"
#include "task.h"
Go to the source code of this file.
Types and functions for the task queue.
@{
- Author
- Moritz Kreutzer morit.nosp@m.z.kr.nosp@m.eutze.nosp@m.r@fa.nosp@m.u.de
Helper function to add a task to a queue.
- Parameters
-
- Returns
- GHOST_SUCCESS on success or GHOST_FAILURE on failure.
Initializes a task queues.
- Returns
- GHOST_SUCCESS on success or GHOST_FAILURE on failure.
Execute all outstanding threads and free the task queues' resources.
- Returns
- GHOST_SUCCESS on success or GHOST_FAILURE on failure.
ghost_error ghost_taskq_startroutine |
( |
void *(**)(void *) |
func | ) |
|
Wait for all tasks in all queues to be finished.
- Returns
- GHOST_SUCCESS on success or GHOST_FAILURE on failure.
Wait for some tasks out of a given list of tasks.
- Parameters
-
tasks | The list of task pointers that should be waited for. |
nt | The length of the list. |
index | Indicating which tasks of the list are now finished. |
- Returns
- GHOST_SUCCESS on success or GHOST_FAILURE on failure.