![]() |
ezEngine Release 25.08
|
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 ezTime &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 ezThreadID | GetCurrentThreadID () |
| Returns an identifier for the currently running thread. | |
Contains general thread functions.