CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::ServerLockFileCheck Class Reference

#include <repository_util.h>

Inheritance diagram for publish::ServerLockFileCheck:
Collaboration diagram for publish::ServerLockFileCheck:

Public Member Functions

 ServerLockFileCheck (ServerLockFile &lock)
 
 ~ServerLockFileCheck ()
 
const bool owns_lock () const
 

Private Attributes

ServerLockFilelock_
 
bool owns_lock_
 

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Detailed Description

RAII try-lock owner for ServerLockFile

TODO(mcb30): C++11 - replace by std::unique_lock<ServerLockFile> (with std::try_to_lock constructor)

Definition at line 72 of file repository_util.h.

Constructor & Destructor Documentation

publish::ServerLockFileCheck::ServerLockFileCheck ( ServerLockFile lock)
inlineexplicit

Definition at line 74 of file repository_util.h.

Here is the call graph for this function:

publish::ServerLockFileCheck::~ServerLockFileCheck ( )
inline

Definition at line 77 of file repository_util.h.

Here is the call graph for this function:

Member Function Documentation

const bool publish::ServerLockFileCheck::owns_lock ( ) const
inline

Definition at line 82 of file repository_util.h.

Member Data Documentation

ServerLockFile& publish::ServerLockFileCheck::lock_
private

Definition at line 85 of file repository_util.h.

Referenced by ServerLockFileCheck(), and ~ServerLockFileCheck().

bool publish::ServerLockFileCheck::owns_lock_
private

Definition at line 86 of file repository_util.h.

Referenced by owns_lock(), ServerLockFileCheck(), and ~ServerLockFileCheck().


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