libnx
v4.8.0
|
Read/write lock synchronization primitive. More...
Go to the source code of this file.
Data Structures | |
struct | RwLock |
Read/write lock structure. More... | |
Functions | |
void | rwlockInit (RwLock *r) |
Initializes the read/write lock. More... | |
void | rwlockReadLock (RwLock *r) |
Locks the read/write lock for reading. More... | |
bool | rwlockTryReadLock (RwLock *r) |
Attempts to lock the read/write lock for reading without waiting. More... | |
void | rwlockReadUnlock (RwLock *r) |
Unlocks the read/write lock for reading. More... | |
void | rwlockWriteLock (RwLock *r) |
Locks the read/write lock for writing. More... | |
bool | rwlockTryWriteLock (RwLock *r) |
Attempts to lock the read/write lock for writing without waiting. More... | |
void | rwlockWriteUnlock (RwLock *r) |
Unlocks the read/write lock for writing. More... | |
bool | rwlockIsWriteLockHeldByCurrentThread (RwLock *r) |
Checks if the write lock is held by the current thread. More... | |
bool | rwlockIsOwnedByCurrentThread (RwLock *r) |
Checks if the read/write lock is owned by the current thread. More... | |
Read/write lock synchronization primitive.
void rwlockInit | ( | RwLock * | r | ) |
Initializes the read/write lock.
r | Read/write lock object. |
bool rwlockIsOwnedByCurrentThread | ( | RwLock * | r | ) |
Checks if the read/write lock is owned by the current thread.
r | Read/write lock object. |
bool rwlockIsWriteLockHeldByCurrentThread | ( | RwLock * | r | ) |
Checks if the write lock is held by the current thread.
r | Read/write lock object. |
void rwlockReadLock | ( | RwLock * | r | ) |
Locks the read/write lock for reading.
r | Read/write lock object. |
void rwlockReadUnlock | ( | RwLock * | r | ) |
Unlocks the read/write lock for reading.
r | Read/write lock object. |
bool rwlockTryReadLock | ( | RwLock * | r | ) |
Attempts to lock the read/write lock for reading without waiting.
r | Read/write lock object. |
bool rwlockTryWriteLock | ( | RwLock * | r | ) |
Attempts to lock the read/write lock for writing without waiting.
r | Read/write lock object. |
void rwlockWriteLock | ( | RwLock * | r | ) |
Locks the read/write lock for writing.
r | Read/write lock object. |
void rwlockWriteUnlock | ( | RwLock * | r | ) |
Unlocks the read/write lock for writing.
r | Read/write lock object. |