Accelerated Computation Engine
opencl_event.h
1 #ifndef OPENCL_EVENT_H
2 #define OPENCL_EVENT_H
3 #include <CL/cl.h>
4 //
5 
6 
7 
8 namespace OpenCL
9 {
18  class Event
19  {
20  public:
21  void operator=(const Event& other);
22  void operator=(Event&& other);
23  public:
27  Event() = default;
28  Event(cl_event id);
29  Event(const Event& other);
30  Event(Event&& other);
31  ~Event();
32  bool isNull() const;
33  void wait() const;
34  bool isDone() const;
35  private:
36  void release();
37  void retain();
42  cl_event* _id {nullptr};
43  };
44 }
45 
46 
47 
48 #endif
bool isDone() const
Definition: opencl_event.cpp:216
~Event()
Definition: opencl_event.cpp:150
Definition: opencl_event.h:18
bool isNull() const
Definition: opencl_event.cpp:172
void operator=(const Event &other)
Definition: opencl_event.cpp:22
void wait() const
Definition: opencl_event.cpp:188
Event()=default
Definition: opencl.h:5