1 #ifndef VIENNACL_OCL_COMMAND_QUEUE_HPP_ 
    2 #define VIENNACL_OCL_COMMAND_QUEUE_HPP_ 
   26 #include <OpenCL/cl.h> 
   54     handle_ = other.handle_;
 
   60     handle_ = other.handle_;
 
   66     return handle_ == other.handle_;
 
   72     clFinish(handle_.
get());
 
   78     clFlush(handle_.
get());
 
command_queue & operator=(command_queue const &other)
Represents an OpenCL device within ViennaCL. 
void finish() const 
Waits until all kernels in the queue have finished their execution. 
viennacl::ocl::handle< cl_command_queue > & handle()
command_queue(command_queue const &other)
A class representing a command queue. 
viennacl::ocl::handle< cl_command_queue > const & handle() const 
bool operator==(command_queue const &other) const 
const OCL_TYPE & get() const 
Implementation of a smart-pointer-like class for handling OpenCL handles. 
void flush() const 
Waits until all kernels in the queue have started their execution. 
command_queue(viennacl::ocl::handle< cl_command_queue > h)