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

#include <util_thread.h>

Public Member Functions

 thread (function< void()> run_cb, int node=-1)
 
 ~thread ()
 
bool join ()
 

Static Public Member Functions

static void * run (void *arg)
 

Protected Attributes

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

Detailed Description

Definition at line 47 of file util_thread.h.

Constructor & Destructor Documentation

◆ thread()

CCL_NAMESPACE_BEGIN thread::thread ( function< void()>  run_cb,
int  node = -1 
)

Definition at line 24 of file util_thread.cpp.

References run(), and std_thread.

◆ ~thread()

thread::~thread ( )

Definition at line 39 of file util_thread.cpp.

References join(), and joined_.

Member Function Documentation

◆ join()

bool thread::join ( )

Definition at line 56 of file util_thread.cpp.

References joined_, NULL, and std_thread.

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

◆ run()

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

Definition at line 46 of file util_thread.cpp.

References NULL, self, and system_cpu_run_thread_on_node().

Referenced by thread().

Member Data Documentation

◆ joined_

bool thread::joined_
protected

Definition at line 64 of file util_thread.h.

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

◆ node_

int thread::node_
protected

Definition at line 65 of file util_thread.h.

◆ run_cb_

function<void()> thread::run_cb_
protected

Definition at line 58 of file util_thread.h.

◆ std_thread

std::thread thread::std_thread
protected

Definition at line 62 of file util_thread.h.

Referenced by join(), and thread().


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