|
Blender V4.3
|
#include <thread.h>
Public Member Functions | |
| thread (function< void()> run_cb) | |
| ~thread () | |
| bool | join () |
Static Public Member Functions | |
| static void * | run (void *arg) |
Protected Attributes | |
| function< void()> | run_cb_ |
| std::thread | std_thread |
| bool | joined_ |
Own thread implementation similar to std::thread, so we can set a custom stack size on macOS.
| CCL_NAMESPACE_BEGIN thread::thread | ( | function< void()> | run_cb | ) |
Definition at line 14 of file thread.cpp.
References attribute, run(), and std_thread.
| thread::~thread | ( | ) |
Definition at line 29 of file thread.cpp.
| bool thread::join | ( | ) |
Definition at line 43 of file thread.cpp.
References joined_, NULL, and std_thread.
Referenced by Profiler::stop(), DedicatedTaskPool::~DedicatedTaskPool(), blender::gpu::MTLParallelShaderCompiler::~MTLParallelShaderCompiler(), Session::~Session(), and ~thread().
|
static |
|
protected |
|
protected |
|
protected |