libnx
v4.8.0
|
Mutex synchronization primitive. More...
Go to the source code of this file.
Typedefs | |
typedef _LOCK_T | Mutex |
Mutex datatype, defined in newlib. | |
typedef _LOCK_RECURSIVE_T | RMutex |
Recursive mutex datatype, defined in newlib. | |
Functions | |
static void | mutexInit (Mutex *m) |
Initializes a mutex. More... | |
void | mutexLock (Mutex *m) |
Locks a mutex. More... | |
bool | mutexTryLock (Mutex *m) |
Attempts to lock a mutex without waiting. More... | |
void | mutexUnlock (Mutex *m) |
Unlocks a mutex. More... | |
bool | mutexIsLockedByCurrentThread (const Mutex *m) |
Gets whether the current thread owns the mutex. More... | |
static void | rmutexInit (RMutex *m) |
Initializes a recursive mutex. More... | |
void | rmutexLock (RMutex *m) |
Locks a recursive mutex. More... | |
bool | rmutexTryLock (RMutex *m) |
Attempts to lock a recursive mutex without waiting. More... | |
void | rmutexUnlock (RMutex *m) |
Unlocks a recursive mutex. More... | |
Mutex synchronization primitive.
|
inlinestatic |
Initializes a mutex.
m | Mutex object. |
bool mutexIsLockedByCurrentThread | ( | const Mutex * | m | ) |
Gets whether the current thread owns the mutex.
m | Mutex object. |
void mutexLock | ( | Mutex * | m | ) |
Locks a mutex.
m | Mutex object. |
bool mutexTryLock | ( | Mutex * | m | ) |
Attempts to lock a mutex without waiting.
m | Mutex object. |
void mutexUnlock | ( | Mutex * | m | ) |
Unlocks a mutex.
m | Mutex object. |
|
inlinestatic |
Initializes a recursive mutex.
m | Recursive mutex object. |
void rmutexLock | ( | RMutex * | m | ) |
Locks a recursive mutex.
m | Recursive mutex object. |
bool rmutexTryLock | ( | RMutex * | m | ) |
Attempts to lock a recursive mutex without waiting.
m | Recursive mutex object. |
void rmutexUnlock | ( | RMutex * | m | ) |
Unlocks a recursive mutex.
m | Recursive mutex object. |