OpenCL C++ Bindings
|
Class interface for cl_event. More...
#include <opencl.hpp>
Public Member Functions | |
Event () | |
Default constructor - initializes to NULL. More... | |
Event (const cl_event &event, bool retainObject=false) | |
Constructor from cl_event - takes ownership. More... | |
Event & | operator= (const cl_event &rhs) |
Assignment operator from cl_event - takes ownership. More... | |
template<typename T > | |
cl_int | getInfo (cl_event_info name, T *param) const |
Wrapper for clGetEventInfo(). More... | |
template<cl_event_info name> | |
detail::param_traits< detail::cl_event_info, name >::param_type | getInfo (cl_int *err=NULL) const |
Wrapper for clGetEventInfo() that returns by value. More... | |
template<typename T > | |
cl_int | getProfilingInfo (cl_profiling_info name, T *param) const |
Wrapper for clGetEventProfilingInfo(). More... | |
template<cl_profiling_info name> | |
detail::param_traits< detail::cl_profiling_info, name >::param_type | getProfilingInfo (cl_int *err=NULL) const |
Wrapper for clGetEventProfilingInfo() that returns by value. More... | |
cl_int | wait () const |
Blocks the calling thread until this event completes. More... | |
cl_int | setCallback (cl_int type, void(CL_CALLBACK *pfn_notify)(cl_event, cl_int, void *), void *user_data=NULL) |
Registers a user callback function for a specific command execution status. More... | |
Public Member Functions inherited from cl::detail::Wrapper< cl_event > | |
Wrapper (const cl_type &obj, bool retainObject) | |
Wrapper (const Wrapper< cl_type > &rhs) | |
Wrapper (Wrapper< cl_type > &&rhs) CL_HPP_NOEXCEPT_ | |
Wrapper< cl_type > & | operator= (const Wrapper< cl_type > &rhs) |
Wrapper< cl_type > & | operator= (Wrapper< cl_type > &&rhs) |
Wrapper< cl_type > & | operator= (const cl_type &rhs) |
const cl_type & | operator() () const |
cl_type & | operator() () |
cl_type | get () const |
Static Public Member Functions | |
static cl_int | waitForEvents (const vector< Event > &events) |
Blocks the calling thread until every event specified is complete. More... | |
Additional Inherited Members | |
Public Types inherited from cl::detail::Wrapper< cl_event > | |
typedef cl_event | cl_type |
Protected Member Functions inherited from cl::detail::Wrapper< cl_event > | |
cl_int | retain () const |
cl_int | release () const |
Protected Attributes inherited from cl::detail::Wrapper< cl_event > | |
cl_type | object_ |
Class interface for cl_event.
Definition at line 3250 of file opencl.hpp.
|
inline |
Default constructor - initializes to NULL.
Definition at line 3254 of file opencl.hpp.
|
inlineexplicit |
Constructor from cl_event - takes ownership.
retainObject | will cause the constructor to retain its cl object. Defaults to false to maintain compatibility with earlier versions. This effectively transfers ownership of a refcount on the cl_event into the new Event object. |
Definition at line 3264 of file opencl.hpp.
|
inline |
Wrapper for clGetEventInfo().
Definition at line 3280 of file opencl.hpp.
|
inline |
Wrapper for clGetEventInfo() that returns by value.
Definition at line 3290 of file opencl.hpp.
|
inline |
Wrapper for clGetEventProfilingInfo() that returns by value.
Definition at line 3313 of file opencl.hpp.
|
inline |
Wrapper for clGetEventProfilingInfo().
Definition at line 3303 of file opencl.hpp.
|
inline |
Assignment operator from cl_event - takes ownership.
This effectively transfers ownership of a refcount on the rhs and calls clReleaseEvent() on the value previously held by this instance.
Definition at line 3272 of file opencl.hpp.
|
inline |
Registers a user callback function for a specific command execution status.
Wraps clSetEventCallback().
Definition at line 3340 of file opencl.hpp.
|
inline |
Blocks the calling thread until this event completes.
Wraps clWaitForEvents().
Definition at line 3328 of file opencl.hpp.
|
inlinestatic |
Blocks the calling thread until every event specified is complete.
Wraps clWaitForEvents().
Definition at line 3360 of file opencl.hpp.