ReadWriteMutex.Reader

This class can be considered a mutex in its own right, and is used to negotiate a read lock for the enclosing mutex.

class ReadWriteMutex
class Reader : Monitor {}

Constructors

this
this()

Initializes a read/write mutex reader proxy object.

Members

Functions

lock
void lock()

Acquires a read lock on the enclosing mutex.

tryLock
bool tryLock()

Attempts to acquire a read lock on the enclosing mutex. If one can be obtained without blocking, the lock is acquired and true is returned. If not, the lock is not acquired and false is returned.

unlock
void unlock()

Releases a read lock on the enclosing mutex.

Inherited Members

From Monitor

lock
void lock()
Undocumented in source.
unlock
void unlock()
Undocumented in source.

Meta