25 int setTickSpeed(
int tickspeed) {
31 unsigned long launchThread(
void (*func)(
void*),
void* arg) {
35 int joinThread(
unsigned long thread) {
39 int detachThread(
unsigned long thread) {
43 void* getInternalMutex(
int id) {
47 int lockMutex(
void* mutex) {
51 int unlockMutex(
void* mutex) {
55 void tryLockMutex(
int id) {
59 void tryUnlockMutex(
int id) {
63 int isThreadSafeEnabled() {
67 int initThreadSafe() {
71 int 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:22