|
CX Framework
Cross-platform C utility framework
|
Thread creation and management. More...
Go to the source code of this file.
Macros | |
| #define | thrRun(func, name, ...) _thrRun(func, name, count_macro_args(__VA_ARGS__), (stvar[]) { __VA_ARGS__ }) |
| #define | thrSetPriority(thread, prio) _thrPlatformSetPriority(thread, THREAD_##prio) |
| #define | thrSetPriorityV(thread, prio) _thrPlatformSetPriority(thread, prio) |
| #define | thrRelease(pthread) objRelease(pthread) |
Enumerations | |
| enum | ThreadPriority { THREAD_Normal = 0 , THREAD_Batch , THREAD_Low , THREAD_Idle , THREAD_High , THREAD_Higher , THREAD_Realtime } |
| Thread scheduling priority levels. More... | |
Functions | |
| Thread * | thrCurrent (void) |
| intptr | thrOSThreadID (Thread *thread) |
| intptr | thrCurrentOSThreadID (void) |
| bool | thrRunning (Thread *thread) |
| bool | thrLoop (Thread *thread) |
| bool | thrRequestExit (Thread *thread) |
| bool | thrWait (Thread *thread, int64 timeout) |
| bool | thrShutdown (Thread *thread) |
| int | thrShutdownMany (sa_Thread threads) |
| void | thrRegisterSysThread (Thread *thread) |
Thread creation and management.
Definition in file thread.h.