1 #ifndef TASKQUEUEBASE_H 2 #define TASKQUEUEBASE_H 19 #include "OpenCLBase/openclbase.h" 20 #include "TaskItem/taskitem.h" 21 #include "jTypeTraits/jtypetraits.h" 47 TaskQueueBase( uint platform_number = 0, uint device_number = 0 );
88 void ReknewSignal( cl::Buffer& processed_buff ,
size_t processed_bytes,
size_t processed_size );
91 std::list< TaskItem* > task_queue;
93 cl::Buffer signal_input;
99 bool on_device =
false;
107 #endif // TASKQUEUEBASE_H void PrintContents()
Print all of the current elements in the queue in the order in which they will be executed...
void Execute()
Run all TaskItems that are currently loaded.
void AddTaskItem(TaskItem &item)
Add a new TaskItem into the TaskQueue.
bool RemoveTaskItem(TaskItem &item)
Remove a TaskItem from the queue (if it exists)
The fundamental structure underlying all OpenCL Functions.
Base class for every class that needs access to OpenCL Platforms, Contexts or Devices.
TaskQueueBase(uint platform_number=0, uint device_number=0)
Build a new TaskQueueBase and implicitly initialize OpenCL Context, Platform etc. ...