LogCabin
|
Provides read/write access to stats, protected against concurrent access. More...
#include <ServerStats.h>
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 | |
ServerStats & | wrapper |
Handle to containing class. | |
std::lock_guard< Core::Mutex > | lockGuard |
Locks mutex for the lifetime of this object. |
Provides read/write access to stats, protected against concurrent access.
Definition at line 83 of file ServerStats.h.
LogCabin::Server::ServerStats::Lock::Lock | ( | ServerStats & | wrapper | ) | [explicit] |
Constructor.
Definition at line 32 of file ServerStats.cc.
Destructor.
Definition at line 38 of file ServerStats.cc.
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.
Handle to containing class.
Definition at line 95 of file ServerStats.h.
std::lock_guard<Core::Mutex> LogCabin::Server::ServerStats::Lock::lockGuard [private] |
Locks mutex for the lifetime of this object.
Definition at line 97 of file ServerStats.h.