54 static void initialize(
bool use_opencl,
int num_cpu_threads);
92 #ifdef WITH_CXX_GUARDEDALLOC
93 MEM_CXX_CLASS_ALLOC_FUNCS(
"COM:WorkScheduler")
Overall context of the compositor.
contains data about work that can be scheduled
static void schedule(WorkPackage *package)
schedule a chunk of a group to be calculated. An execution group schedules a chunk in the WorkSchedul...
static void deinitialize()
deinitialize the WorkScheduler free all allocated resources
static bool has_gpu_devices()
Are there OpenCL capable GPU devices initialized? the result of this method is stored in the Composit...
static void finish()
wait for all work to be completed.
static void stop()
stop the execution All created thread by the start method are destroyed.
static int current_thread_id()
static void start(CompositorContext &context)
Start the execution this methods will start the WorkScheduler. Inside this method all threads are ini...
static void initialize(bool use_opencl, int num_cpu_threads)
initialize the WorkScheduler