class
Thread
Inherits:
INonCopyable
Wrapper for an OS thread.
Public
Constructors
Thread
Thread() = default
Thread
Thread
Thread(Function<void ()> &&workerFunction)
Thread
Thread(Thread &&)
Methods
~Thread
~Thread()
GetId
u32 GetId() const
Returns a unique identifier for the thread.
WaitUntilComplete
void WaitUntilComplete()
Blocks the calling thread until this thread completes.
staticSetName
static void SetName(const char *format, ...)
Assigns a name to the current thread, primarily for debugging purposes.
staticGetLogicalCoreCount
static u32 GetLogicalCoreCount()
Returns the total available number of logical CPU cores.
staticGetCurrentThreadId
static u32 GetCurrentThreadId()
Gets the id of the current thread.
Operators
Private
Fields
m
Implementation * m