6 #ifdef WITH_CXX_GUARDEDALLOC
14 class CompositorContext;
81 #ifdef WITH_CXX_GUARDEDALLOC
82 MEM_CXX_CLASS_ALLOC_FUNCS(
"COM:WorkScheduler")
Read Guarded memory(de)allocation.
Overall context of the compositor.
contains data about work that can be scheduled
static int get_num_cpu_threads()
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 start(const CompositorContext &context)
Start the execution this methods will start the WorkScheduler. Inside this method all threads are ini...
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 initialize(bool use_opencl, int num_cpu_threads)
initialize the WorkScheduler