|
Blender V5.0
|
#include <thread.h>
Public Member Functions | |
| thread (std::function< void()> run_cb) | |
| ~thread () | |
| bool | join () |
Static Public Member Functions | |
| static void * | run (void *arg) |
Protected Attributes | |
| std::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 | ( | std::function< void()> | run_cb | ) |
Definition at line 19 of file thread.cpp.
References false, joined_, run(), run_cb_, and std_thread.
Referenced by run().
| thread::~thread | ( | ) |
Definition at line 34 of file thread.cpp.
| bool thread::join | ( | ) |
Definition at line 48 of file thread.cpp.
References joined_, and std_thread.
Referenced by blender::gpu::GPUWorker::~GPUWorker(), and ~thread().
|
static |
|
protected |
|
protected |
|
protected |