#include <xmltooling/util/Threads.h>
Public Member Functions | |
SharedLock (RWLock *lock, bool lockit=true) | |
Locks and wraps the designated shared lock. | |
~SharedLock () | |
Unlocks the wrapped shared lock. |
xmltooling::SharedLock::SharedLock | ( | RWLock * | lock, | |
bool | lockit = true | |||
) | [inline] |
Locks and wraps the designated shared lock.
lock | lock to acquire | |
lockit | true if the lock should be acquired here, false if already acquired |