CernVM-FS
2.12.0
|
Public Member Functions | |
CallGuard () | |
~CallGuard () | |
Static Public Member Functions | |
static void | Drainout () |
Private Attributes | |
bool | drainout_ |
Static Private Attributes | |
static atomic_int32 | global_drainout_ = 0 |
static atomic_int32 | num_inflight_calls_ = 0 |
A CallGuard object can be placed at the beginning of a function. It counts the number of so-annotated functions that are in flight. The Drainout() call will wait until all functions that have been called so far are finished.
The class is used in order to wait for remaining calls when switching into the read-only cache mode.
Definition at line 79 of file cache_posix.cc.
|
inline |
Definition at line 81 of file cache_posix.cc.
|
inline |
Definition at line 87 of file cache_posix.cc.
|
inlinestatic |
|
private |
Definition at line 97 of file cache_posix.cc.
|
staticprivate |
Definition at line 98 of file cache_posix.cc.
|
staticprivate |
Definition at line 99 of file cache_posix.cc.