Class Avogadro::Core::Mutex#

class Avogadro::Core::Mutex#

The Mutex class provides a simple wrapper for the C++11 mutex class.

A very simple, and thin wrapper around the C++11 mutex class, allowing for lock, tryLock and unlock.

Author

Marcus D. Hanwell

Public Functions

Mutex()#
~Mutex()#
void lock()#

Obtain an exclusive lock.

bool tryLock()#

Attempt to obtain an exclusive lock.

Returns

True on success, false on failure.

void unlock()#

Unlocks the lock.