Data Structures | |
struct | cuflow_workq |
Typedefs | |
typedef struct cuflowP_workqseg * | cuflowP_workqseg_t |
Functions | |
typedef | cu_clop0 (cuflow_workq_fn_t, void) |
cuflow_workq_fn_t | cuflowP_workq_pop_front (cuflow_workq_t wq) |
void | cuflowP_workq_advance_tail (cuflow_workq_t wq) |
void | cuflow_workq_init (cuflow_workq_t wq) |
void | cuflow_workq_append (cuflow_workq_t wq, cuflow_workq_fn_t fn) |
cuflow_workq_fn_t | cuflow_workq_pop_front (cuflow_workq_t wq) |
size_t | cuflow_workq_size (cuflow_workq_t wq) |
typedef cu_clop0 | ( | cuflow_workq_fn_t | , | |
void | ||||
) |
The type of function which can be queued on work queues.
void cuflow_workq_append | ( | cuflow_workq_t | wq, | |
cuflow_workq_fn_t | fn | |||
) |
Append a task to the end of wq.
void cuflow_workq_init | ( | cuflow_workq_t | wq | ) |
Construct a work queue.
cuflow_workq_fn_t cuflow_workq_pop_front | ( | cuflow_workq_t | wq | ) |
Pop off the first task on wq.
size_t cuflow_workq_size | ( | cuflow_workq_t | wq | ) |
The number of functions on wq. Note that it takes time linear in the number of scheduled functions.