Ion
|
A WriteLock obtains a write lock, but has a similar interface to a Mutex and can be used with a WriteGuard. More...
#include "readwritelock.h"
Public Member Functions | |
WriteLock (ReadWriteLock *lock) | |
The passed pointer must be non-NULL. More... | |
~WriteLock () | |
void | Lock () |
"Locks" the lock for writing, which blocks if there are any readers or writers holding the lock. More... | |
void | Unlock () |
"Unlocks" the lock for writing, which may allow other readers or writers to proceed. More... | |
bool | IsLocked () const |
Returns whether there are any writers in the lock. More... | |
A WriteLock obtains a write lock, but has a similar interface to a Mutex and can be used with a WriteGuard.
Definition at line 111 of file readwritelock.h.
|
inlineexplicit |
The passed pointer must be non-NULL.
Definition at line 114 of file readwritelock.h.
|
inline |
Definition at line 115 of file readwritelock.h.
|
inline |
Returns whether there are any writers in the lock.
This is similar to what it means for a Mutex to be locked.
Definition at line 124 of file readwritelock.h.
|
inline |
"Locks" the lock for writing, which blocks if there are any readers or writers holding the lock.
See the comments for ReadWriteLock.
Definition at line 118 of file readwritelock.h.
|
inline |
"Unlocks" the lock for writing, which may allow other readers or writers to proceed.
See the comments for ReadWriteLock.
Definition at line 121 of file readwritelock.h.