cf4ocl (C Framework for OpenCL)
v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
|
This module provides simple management of event wait lists. More...
Macros | |
#define | ccl_ewl ccl_event_wait_list_add |
Alias the for the ccl_event_wait_list_add() function. More... | |
#define | ccl_ewl ccl_event_wait_list_add |
Alias the for the ccl_event_wait_list_add() function. More... | |
Typedefs | |
typedef GPtrArray * | CCLEventWaitList |
A list of event objects on which enqueued commands can wait. More... | |
typedef GPtrArray * | CCLEventWaitList |
A list of event objects on which enqueued commands can wait. More... | |
Functions | |
CCLEventWaitList * | ccl_event_wait_list_add (CCLEventWaitList *evt_wait_lst,...) G_GNUC_NULL_TERMINATED |
Add event wrapper objects to an event wait list (variable argument list version). More... | |
CCLEventWaitList * | ccl_event_wait_list_add_v (CCLEventWaitList *evt_wait_lst, CCLEvent **evt) |
Add event wrapper objects to an event wait list (array version). More... | |
void | ccl_event_wait_list_clear (CCLEventWaitList *evt_wait_lst) |
Clears an event wait list. More... | |
This module provides simple management of event wait lists.
Client code must initialize CCLEventWaitList variables to NULL
, and can reuse them between ccl_*_enqueue_*()
function calls. No allocation and deallocation of events and event wait lists is required if populated event wait lists are consumed by ccl_*_enqueue_*()
functions; otherwise, unused non-empty event wait lists should be freed with the ccl_event_wait_list_clear() function.
Example 1:
Example 2:
#define ccl_ewl ccl_event_wait_list_add |
Alias the for the ccl_event_wait_list_add() function.
Intended as a shortcut to use ccl_event_wait_list_add() directly in ccl_*_enqueue_*()
functions.
Definition at line 331 of file ccl_event_wrapper.h.
#define ccl_ewl ccl_event_wait_list_add |
Alias the for the ccl_event_wait_list_add() function.
Intended as a shortcut to use ccl_event_wait_list_add() directly in ccl_*_enqueue_*()
functions.
Definition at line 331 of file ccl_event_wrapper.h.
typedef GPtrArray* CCLEventWaitList |
A list of event objects on which enqueued commands can wait.
Definition at line 324 of file ccl_event_wrapper.h.
typedef GPtrArray* CCLEventWaitList |
A list of event objects on which enqueued commands can wait.
Definition at line 324 of file ccl_event_wrapper.h.
CCLEventWaitList * ccl_event_wait_list_add | ( | CCLEventWaitList * | evt_wait_lst, |
... | |||
) |
Add event wrapper objects to an event wait list (variable argument list version).
[out] | evt_wait_lst | Event wait list. |
[in] | ... | A NULL -terminated list of event wrapper objects. |
Definition at line 722 of file ccl_event_wrapper.c.
CCLEventWaitList * ccl_event_wait_list_add_v | ( | CCLEventWaitList * | evt_wait_lst, |
CCLEvent ** | evts | ||
) |
Add event wrapper objects to an event wait list (array version).
[out] | evt_wait_lst | Event wait list. |
[in] | evts | NULL -terminated array of event wrapper objects. |
Definition at line 768 of file ccl_event_wrapper.c.
void ccl_event_wait_list_clear | ( | CCLEventWaitList * | evt_wait_lst | ) |
Clears an event wait list.
This function will rarely be called from client code because event wait lists are automatically cleared when passed to ccl_*_enqueue_*()
functions.
[out] | evt_wait_lst | Event wait list. |
Definition at line 807 of file ccl_event_wrapper.c.