CernVM-FS
2.12.0
|
#include <mutex.h>
Public Member Functions | |
RAII (T &object) | |
RAII (T *object) | |
~RAII () | |
Protected Member Functions | |
void | Enter () |
void | Leave () |
template<> | |
void | Enter () |
template<> | |
void | Leave () |
template<> | |
void | Enter () |
template<> | |
void | Leave () |
template<> | |
void | Enter () |
template<> | |
void | Leave () |
Private Attributes | |
T & | ref_ |
Additional Inherited Members | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
Basic template wrapper class for any kind of RAII-like behavior. The user is supposed to provide a template specialization of Enter() and Leave(). On creation of the RAII object it will call Enter() respectively Leave() on destruction. The gold standard example is a LockGard (see below).
Note: Resource Acquisition Is Initialization (Bjarne Stroustrup)
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
private |