Interface RWLock
access this type via: os.RWLock (provides, requires or uses)
A read/write lock, allowing multiple readers into a critical section, but only a single writer.
Functions
RWLock()
void lockRead()
void unlockRead()
void lockWrite()
void unlockWrite()
RWLock()
Instantiate a new read/write lock object.
void lockRead()
Request a read lock. This function will block if another thread currently holds a write lock.
void unlockRead()
Release a read lock.
void lockWrite()
Request a write lock. This function will block if any other threads currently hold a write or a read lock.
void unlockWrite()
Release a write lock.