A soft write lock for controlling access to the two internal lists. More...
#include <fileManager.h>
Public Member Functions | |
bool | isLocked () const |
Has a write lock be acquired? Returns true or false to indicate yes or no. | |
softWriteLock (const char *m) | |
Constructor. | |
~softWriteLock () | |
Destructor. |
A soft write lock for controlling access to the two internal lists.
ibis::fileManager::softWriteLock::softWriteLock | ( | const char * | m | ) |
Constructor.
It attempts to acquire the lock and records whether a write lock was acquired as a boolean variable. The function isLocked returns whether the lock has been acquired.
References ibis::gVerbose, and ibis::fileManager::instance().
bool ibis::fileManager::softWriteLock::isLocked | ( | ) | const [inline] |
Has a write lock be acquired? Returns true or false to indicate yes or no.
Referenced by ibis::fileManager::clear().
![]() |