Blender  V3.3
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
thread Class Reference

#include <thread.h>

Public Member Functions

 thread (function< void()> run_cb)
 
 ~thread ()
 
bool join ()
 

Static Public Member Functions

static voidrun (void *arg)
 

Protected Attributes

function< void()> run_cb_
 
std::thread std_thread
 
bool joined_
 

Detailed Description

Definition at line 34 of file thread.h.

Constructor & Destructor Documentation

◆ thread()

CCL_NAMESPACE_BEGIN thread::thread ( function< void()>  run_cb)

Definition at line 13 of file thread.cpp.

References attribute, run(), and std_thread.

◆ ~thread()

thread::~thread ( )

Definition at line 28 of file thread.cpp.

References join(), and joined_.

Member Function Documentation

◆ join()

bool thread::join ( )

Definition at line 42 of file thread.cpp.

References joined_, NULL, and std_thread.

Referenced by Profiler::stop(), DedicatedTaskPool::~DedicatedTaskPool(), Session::~Session(), and ~thread().

◆ run()

void * thread::run ( void arg)
static

Definition at line 35 of file thread.cpp.

References NULL, and run_cb_.

Referenced by thread().

Member Data Documentation

◆ joined_

bool thread::joined_
protected

Definition at line 49 of file thread.h.

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

◆ run_cb_

function<void()> thread::run_cb_
protected

Definition at line 43 of file thread.h.

Referenced by run().

◆ std_thread

std::thread thread::std_thread
protected

Definition at line 47 of file thread.h.

Referenced by join(), and thread().


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