Blender
V3.3
|
#include <task.h>
Public Member Functions | |
DedicatedTaskPool () | |
~DedicatedTaskPool () | |
void | push (TaskRunFunction &&run, bool front=false) |
void | wait () |
void | cancel () |
bool | canceled () |
Protected Member Functions | |
void | num_decrease (int done) |
void | num_increase () |
void | thread_run () |
bool | thread_wait_pop (TaskRunFunction &task) |
void | clear () |
Protected Attributes | |
thread_mutex | num_mutex |
thread_condition_variable | num_cond |
list< TaskRunFunction > | queue |
thread_mutex | queue_mutex |
thread_condition_variable | queue_cond |
int | num |
bool | do_cancel |
bool | do_exit |
thread * | worker_thread |
DedicatedTaskPool::DedicatedTaskPool | ( | ) |
Definition at line 107 of file task.cpp.
References do_cancel, do_exit, function_bind, num, thread_run(), and worker_thread.
DedicatedTaskPool::~DedicatedTaskPool | ( | ) |
Definition at line 116 of file task.cpp.
References do_exit, thread::join(), queue_cond, wait(), and worker_thread.
void DedicatedTaskPool::cancel | ( | ) |
|
protected |
Definition at line 217 of file task.cpp.
References num_decrease(), queue, and queue_mutex.
Referenced by cancel().
|
protected |
|
protected |
void DedicatedTaskPool::push | ( | TaskRunFunction && | run, |
bool | front = false |
||
) |
Definition at line 127 of file task.cpp.
References num_increase(), queue, queue_cond, queue_mutex, and blender::compositor::task.
|
protected |
Definition at line 200 of file task.cpp.
References num_decrease(), blender::compositor::task, and thread_wait_pop().
Referenced by DedicatedTaskPool().
|
protected |
Definition at line 182 of file task.cpp.
References do_exit, queue, queue_cond, queue_mutex, and blender::compositor::task.
Referenced by thread_run().
void DedicatedTaskPool::wait | ( | ) |
|
protected |
Definition at line 126 of file task.h.
Referenced by cancel(), canceled(), and DedicatedTaskPool().
|
protected |
Definition at line 127 of file task.h.
Referenced by DedicatedTaskPool(), thread_wait_pop(), and ~DedicatedTaskPool().
|
protected |
Definition at line 125 of file task.h.
Referenced by DedicatedTaskPool(), num_decrease(), num_increase(), and wait().
|
protected |
Definition at line 119 of file task.h.
Referenced by num_decrease(), num_increase(), and wait().
|
protected |
Definition at line 118 of file task.h.
Referenced by num_decrease(), num_increase(), and wait().
|
protected |
Definition at line 121 of file task.h.
Referenced by clear(), push(), and thread_wait_pop().
|
protected |
Definition at line 123 of file task.h.
Referenced by push(), thread_wait_pop(), and ~DedicatedTaskPool().
|
protected |
Definition at line 122 of file task.h.
Referenced by clear(), push(), and thread_wait_pop().
|
protected |
Definition at line 129 of file task.h.
Referenced by DedicatedTaskPool(), and ~DedicatedTaskPool().