CernVM-FS
2.12.0
|
#include <concurrency.h>
Public Member Functions | |
virtual | ~Lockable () |
void | Lock () const |
int | TryLock () const |
void | Unlock () const |
Protected Member Functions | |
Lockable () | |
Private Attributes | |
pthread_mutex_t | mutex_ |
Additional Inherited Members | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
This file is part of the CernVM File System. Implements a simple interface to lock objects of derived classes. Classes that inherit from Lockable are also usable with the LockGuard template for scoped locking semantics.
Definition at line 30 of file concurrency.h.
|
inlinevirtual |
Definition at line 32 of file concurrency.h.
|
inlineprotected |
|
inline |
Definition at line 34 of file concurrency.h.
|
inline |
Definition at line 35 of file concurrency.h.
|
inline |
Definition at line 36 of file concurrency.h.
|
mutableprivate |
Definition at line 45 of file concurrency.h.