8 #include "../kernel/mutex.h"
9 #include "../kernel/condvar.h"
17 u32 read_waiter_count;
19 u32 write_waiter_count;
u32 CondVar
Condition variable.
Definition: condvar.h:13
_LOCK_T Mutex
Mutex datatype, defined in newlib.
Definition: mutex.h:12
void rwlockWriteUnlock(RwLock *r)
Unlocks the read/write lock for writing.
bool rwlockTryWriteLock(RwLock *r)
Attempts to lock the read/write lock for writing without waiting.
bool rwlockTryReadLock(RwLock *r)
Attempts to lock the read/write lock for reading without waiting.
bool rwlockIsOwnedByCurrentThread(RwLock *r)
Checks if the read/write lock is owned by the current thread.
void rwlockWriteLock(RwLock *r)
Locks the read/write lock for writing.
void rwlockReadUnlock(RwLock *r)
Unlocks the read/write lock for reading.
bool rwlockIsWriteLockHeldByCurrentThread(RwLock *r)
Checks if the write lock is held by the current thread.
void rwlockInit(RwLock *r)
Initializes the read/write lock.
void rwlockReadLock(RwLock *r)
Locks the read/write lock for reading.
Read/write lock structure.
Definition: rwlock.h:12
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21