Mutex

This class represents a general purpose, recursive mutex.

Constructors

this
this()

Initializes a mutex object.

this
this(Object o)

Initializes a mutex object and sets it as the monitor for o.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

handleAddr
pthread_mutex_t* handleAddr()
Undocumented in source. Be warned that the author may not have intended to support it.
lock
void lock()

If this lock is not already held by the caller, the lock is acquired, then the internal counter is incremented by one.

tryLock
bool tryLock()

If the lock is held by another caller, the method returns. Otherwise, the lock is acquired if it is not already held, and then the internal counter is incremented by one.

unlock
void unlock()

Decrements the internal lock count by one. If this brings the count to zero, the lock is released.

Inherited Members

From Monitor

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

Meta