CFx SDK Documentation 2024 SP0
|
Go to the source code of this file.
Classes | |
class | OdMutexPtr |
class | OdMutexPtrAutoLock |
class | ThreadsCounterReactor |
class | ThreadsCounter |
Macros | |
#define | TD_AUTOLOCK_P(Mutex) OdMutexPtrAutoLock autoLock(Mutex); |
#define | TD_AUTOLOCK_P_DEF(Mutex) OdMutexPtrAutoLock autoLock(odThreadsCounter() ? Mutex.get() : NULL); |
Typedefs | |
typedef void(* | MainThreadFunc) (void *) |
typedef void(* | ExecuteMainThreadFunc) (MainThreadFunc, void *) |
Functions | |
FIRSTDLL_EXPORT ThreadsCounter & | odThreadsCounter () |
FIRSTDLL_EXPORT bool | odExecuteMainThreadAction (MainThreadFunc mtFunc, void *pArg, bool bExecST=true) |
FIRSTDLL_EXPORT unsigned | odGetCurrentThreadId () |
FIRSTDLL_EXPORT void | odThreadYield () |
#define TD_AUTOLOCK_P | ( | Mutex | ) | OdMutexPtrAutoLock autoLock(Mutex); |
Definition at line 297 of file ThreadsCounter.h.
#define TD_AUTOLOCK_P_DEF | ( | Mutex | ) | OdMutexPtrAutoLock autoLock(odThreadsCounter() ? Mutex.get() : NULL); |
Definition at line 298 of file ThreadsCounter.h.
typedef void(* ExecuteMainThreadFunc) (MainThreadFunc, void *) |
Definition at line 162 of file ThreadsCounter.h.
Definition at line 160 of file ThreadsCounter.h.
FIRSTDLL_EXPORT bool odExecuteMainThreadAction | ( | MainThreadFunc | mtFunc, |
void * | pArg, | ||
bool | bExecST = true |
||
) |
FIRSTDLL_EXPORT unsigned odGetCurrentThreadId | ( | ) |
FIRSTDLL_EXPORT ThreadsCounter & odThreadsCounter | ( | ) |
FIRSTDLL_EXPORT void odThreadYield | ( | ) |