26int setTickSpeed(
int tickspeed) {
32ThreadID launchThread(
void (*func)(
void*),
void* arg) {
36int joinThread(ThreadID thread) {
40int detachThread(ThreadID thread) {
44void* getInternalMutex(
int id) {
48int lockMutex(
void* mutex) {
52int unlockMutex(
void* mutex) {
56void tryLockMutex(
int id) {
60void tryUnlockMutex(
int id) {
64int isThreadSafeEnabled() {
72int destroyThreadSafe() {
Cross-Platform Utilities for CmdFX.
int CmdFX_detachThread(ThreadID thread)
Detaches a thread.
int CmdFX_unlockMutex(void *mutex)
Unlocks a mutex.
int CmdFX_joinThread(ThreadID thread)
Joins a thread.
ThreadID CmdFX_launchThread(void(*func)(void *), void *arg)
Launches a thread.
int CmdFX_isThreadSafeEnabled()
Checks if thread-safe functions are enabled.
void CmdFX_tryUnlockMutex(int id)
Tries to unlock a mutex.
int CmdFX_initThreadSafe()
Initializes thread-safe functions.
int CmdFX_setTickSpeed(int tickspeed)
Sets the tick speed of cmdfx.
int CmdFX_lockMutex(void *mutex)
Locks a mutex.
void CmdFX_tryLockMutex(int id)
Tries to lock a mutex.
int CmdFX_getTickSpeed()
Gets the tick speed of cmdfx.
int CmdFX_destroyThreadSafe()
Cleans up thread-safe functions.
void * CmdFX_getInternalMutex(int index)
Gets an internal mutex.
Primary namespace for CmdFX.
Definition cmdfx.hpp:26