CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{}::CallGuard Class Reference

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

Detailed Description

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

Constructor & Destructor Documentation

anonymous_namespace{}::CallGuard::CallGuard ( )

Definition at line 81 of file

anonymous_namespace{}::CallGuard::~CallGuard ( )

Definition at line 87 of file

Member Function Documentation

static void anonymous_namespace{}::CallGuard::Drainout ( )

Definition at line 91 of file

Here is the call graph for this function:

Member Data Documentation

bool anonymous_namespace{}::CallGuard::drainout_

Definition at line 97 of file

atomic_int32 anonymous_namespace{}::CallGuard::global_drainout_ = 0

Definition at line 98 of file

atomic_int32 anonymous_namespace{}::CallGuard::num_inflight_calls_ = 0

Definition at line 99 of file

The documentation for this class was generated from the following file: