! \brief Constructs a user event on a given context. * * Wraps clCreateUserEvent(). */
| 2967 | * Wraps clCreateUserEvent(). |
| 2968 | */ |
| 2969 | UserEvent( |
| 2970 | const Context& context, |
| 2971 | cl_int * err = NULL) |
| 2972 | { |
| 2973 | cl_int error; |
| 2974 | object_ = ::clCreateUserEvent( |
| 2975 | context(), |
| 2976 | &error); |
| 2977 | |
| 2978 | detail::errHandler(error, __CREATE_USER_EVENT_ERR); |
| 2979 | if (err != NULL) { |
| 2980 | *err = error; |
| 2981 | } |
| 2982 | } |
| 2983 | |
| 2984 | //! \brief Default constructor - initializes to NULL. |
| 2985 | UserEvent() : Event() { } |
nothing calls this directly
no test coverage detected