SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
sc_thread_t Class Referenceabstract
Inheritance diagram for sc_thread_t:
noncopyable sim_t

Classes

class  native_t
 

Public Member Functions

std::thread::id thread_id () const
 
void launch ()
 
void join ()
 Wait for thread to finish its execution.
 

Static Public Member Functions

static void sleep_seconds (double)
 put calling thread to sleep More...
 
static unsigned cpu_thread_count ()
 Get the number of concurrent threads supported by the CPU. More...
 

Member Function Documentation

◆ cpu_thread_count()

unsigned sc_thread_t::cpu_thread_count ( )
static

Get the number of concurrent threads supported by the CPU.

If the value is not well defined or not computable, returns ​0​.

Returns
number of concurrent threads supported.

◆ sleep_seconds()

void sc_thread_t::sleep_seconds ( double  t)
static

put calling thread to sleep

Parameters
ttime in seconds