|
Blender V4.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 106 of file task.cpp.
References do_cancel, do_exit, function_bind, num, thread_run(), and worker_thread.
| DedicatedTaskPool::~DedicatedTaskPool | ( | ) |
Definition at line 115 of file task.cpp.
References do_exit, thread::join(), queue_cond, wait(), and worker_thread.
| void DedicatedTaskPool::cancel | ( | ) |
|
protected |
Definition at line 221 of file task.cpp.
References num_decrease(), and queue_mutex.
Referenced by cancel().
|
protected |
|
protected |
| void DedicatedTaskPool::push | ( | TaskRunFunction && | run, |
| bool | front = false ) |
Definition at line 126 of file task.cpp.
References num_increase(), queue_cond, and queue_mutex.
|
protected |
Definition at line 204 of file task.cpp.
References num_decrease(), and thread_wait_pop().
Referenced by DedicatedTaskPool().
|
protected |
Definition at line 185 of file task.cpp.
References do_exit, queue_cond, and queue_mutex.
Referenced by thread_run().
| void DedicatedTaskPool::wait | ( | ) |
|
protected |
Definition at line 128 of file task.h.
Referenced by cancel(), canceled(), and DedicatedTaskPool().
|
protected |
Definition at line 129 of file task.h.
Referenced by DedicatedTaskPool(), thread_wait_pop(), and ~DedicatedTaskPool().
|
protected |
Definition at line 127 of file task.h.
Referenced by DedicatedTaskPool(), num_decrease(), num_increase(), and wait().
|
protected |
Definition at line 121 of file task.h.
Referenced by num_decrease(), num_increase(), and wait().
|
protected |
Definition at line 120 of file task.h.
Referenced by num_decrease(), num_increase(), and wait().
|
protected |
|
protected |
Definition at line 125 of file task.h.
Referenced by push(), thread_wait_pop(), and ~DedicatedTaskPool().
|
protected |
Definition at line 124 of file task.h.
Referenced by clear(), push(), and thread_wait_pop().
|
protected |
Definition at line 131 of file task.h.
Referenced by DedicatedTaskPool(), and ~DedicatedTaskPool().