|
libnx v4.9.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. | |
| void | rwlockReadLock (RwLock *r) |
| Locks the read/write lock for reading. | |
| bool | rwlockTryReadLock (RwLock *r) |
| Attempts to lock the read/write lock for reading without waiting. | |
| void | rwlockReadUnlock (RwLock *r) |
| Unlocks the read/write lock for reading. | |
| void | rwlockWriteLock (RwLock *r) |
| Locks the read/write lock for writing. | |
| bool | rwlockTryWriteLock (RwLock *r) |
| Attempts to lock the read/write lock for writing without waiting. | |
| void | rwlockWriteUnlock (RwLock *r) |
| Unlocks the read/write lock for writing. | |
| bool | rwlockIsWriteLockHeldByCurrentThread (RwLock *r) |
| Checks if the write lock is held by the current thread. | |
| bool | rwlockIsOwnedByCurrentThread (RwLock *r) |
| Checks if the read/write lock is owned by the current thread. | |
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. |