LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
LogCabin::Server::ServerStats::Lock Class Reference

Provides read/write access to stats, protected against concurrent access. More...

#include <ServerStats.h>

List of all members.

Public Member Functions

 Lock (ServerStats &wrapper)
 Constructor.
 ~Lock ()
 Destructor.
Protocol::ServerStats * operator-> ()
 Structure dereference operator. Returns stats pointer.
Protocol::ServerStats & operator* ()
 Indirection (dereference) operator. Returns stats reference.

Private Attributes

ServerStatswrapper
 Handle to containing class.
std::lock_guard< Core::MutexlockGuard
 Locks mutex for the lifetime of this object.

Detailed Description

Provides read/write access to stats, protected against concurrent access.

Definition at line 83 of file ServerStats.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 32 of file ServerStats.cc.

Destructor.

Definition at line 38 of file ServerStats.cc.


Member Function Documentation

Protocol::ServerStats * LogCabin::Server::ServerStats::Lock::operator-> ( )

Structure dereference operator. Returns stats pointer.

Definition at line 43 of file ServerStats.cc.

Protocol::ServerStats & LogCabin::Server::ServerStats::Lock::operator* ( )

Indirection (dereference) operator. Returns stats reference.

Definition at line 49 of file ServerStats.cc.


Member Data Documentation

Handle to containing class.

Definition at line 95 of file ServerStats.h.

Locks mutex for the lifetime of this object.

Definition at line 97 of file ServerStats.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines