33 #define OS_MUTEX_TAG 0x6D557458u
57 CHECK_OFFSET(
OSMutex, 0x00, tag);
58 CHECK_OFFSET(
OSMutex, 0x04, name);
59 CHECK_OFFSET(
OSMutex, 0x0c, queue);
60 CHECK_OFFSET(
OSMutex, 0x1c, owner);
61 CHECK_OFFSET(
OSMutex, 0x20, count);
62 CHECK_OFFSET(
OSMutex, 0x24, link);
int32_t count
Current recursion lock count of mutex.
OSThreadQueue queue
Queue of threads waiting for this mutex to unlock.
void OSInitMutexEx(OSMutex *mutex, const char *name)
uint32_t tag
Should always be set to the value OS_MUTEX_TAG.
void OSUnlockMutex(OSMutex *mutex)
OSThread * owner
Current owner of mutex.
void OSLockMutex(OSMutex *mutex)
void OSInitMutex(OSMutex *mutex)
BOOL OSTryLockMutex(OSMutex *mutex)
const char * name
Name set by OSInitMutexEx.
OSMutexLink link
Link used inside OSThread's mutex queue.