Blender V4.3
thread Class Reference

#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_
 

Detailed Description

Own thread implementation similar to std::thread, so we can set a custom stack size on macOS.

Definition at line 37 of file thread.h.

Constructor & Destructor Documentation

◆ thread()

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::~thread ( )

Definition at line 29 of file thread.cpp.

References join(), and joined_.

Member Function Documentation

◆ join()

◆ run()

void * thread::run ( void * arg)
static

Definition at line 36 of file thread.cpp.

References NULL, run_cb_, and self.

Referenced by thread().

Member Data Documentation

◆ joined_

bool thread::joined_
protected

Definition at line 52 of file thread.h.

Referenced by join(), and ~thread().

◆ run_cb_

function<void()> thread::run_cb_
protected

Definition at line 46 of file thread.h.

Referenced by run().

◆ std_thread

std::thread thread::std_thread
protected

Definition at line 50 of file thread.h.

Referenced by join(), and thread().


The documentation for this class was generated from the following files: