ReadWriteMutex.Writer

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

class ReadWriteMutex
class Writer : Monitor {}

Constructors

this
this()

Initializes a read/write mutex writer proxy object.

Members

Functions

lock
void lock()

Acquires a write lock on the enclosing mutex.

tryLock
bool tryLock()

Attempts to acquire a write 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 write lock on the enclosing mutex.

Inherited Members

From Monitor

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

Meta