|
libnx v4.9.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. | |
| void | mutexLock (Mutex *m) |
| Locks a mutex. | |
| bool | mutexTryLock (Mutex *m) |
| Attempts to lock a mutex without waiting. | |
| void | mutexUnlock (Mutex *m) |
| Unlocks a mutex. | |
| bool | mutexIsLockedByCurrentThread (const Mutex *m) |
| Gets whether the current thread owns the mutex. | |
| static void | rmutexInit (RMutex *m) |
| Initializes a recursive mutex. | |
| void | rmutexLock (RMutex *m) |
| Locks a recursive mutex. | |
| bool | rmutexTryLock (RMutex *m) |
| Attempts to lock a recursive mutex without waiting. | |
| void | rmutexUnlock (RMutex *m) |
| Unlocks a recursive mutex. | |
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. |