Plasma Engine  2.0
Loading...
Searching...
No Matches
plThreadUtils Class Reference

Contains general thread functions. More...

#include <ThreadUtils.h>

Static Public Member Functions

static void YieldTimeSlice ()
 Suspends execution of the current thread.
 
static void YieldHardwareThread ()
 Give resources to other hardware threads on the same processor. Does nothing if the processor has no hardware threads.
 
static void Sleep (const plTime &duration)
 Suspends the execution of the current thread for the given amount of time. (Precision may vary according to OS)
 
static bool IsMainThread ()
 Helper function to check if the current thread is the main thread (e.g. the thread which initialized the foundation library)
 
static plThreadID GetCurrentThreadID ()
 Returns an identifier for the currently running thread.
 

Detailed Description

Contains general thread functions.


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