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