mongo::RSBase Class Reference

#include <rs.h>

Inheritance diagram for mongo::RSBase:
Inheritance graph
[legend]

List of all members.

Classes

class  lock

Public Member Functions

void assertValid ()
bool locked () const
bool lockedByMe ()

Public Attributes

const unsigned magic

Protected Member Functions

 RSBase ()
 ~RSBase ()

Private Attributes

int _locked
ThreadLocalValue< bool > _lockedByMe
mongo::mutex m

Detailed Description

most operations on a ReplSet object should be done while locked. that logic implemented here.

Definition at line 120 of file rs.h.


Constructor & Destructor Documentation

mongo::RSBase::RSBase (  )  [inline, protected]

Definition at line 129 of file rs.h.

mongo::RSBase::~RSBase (  )  [inline, protected]

Definition at line 130 of file rs.h.


Member Function Documentation

void mongo::RSBase::assertValid (  )  [inline]

Definition at line 123 of file rs.h.

bool mongo::RSBase::locked (  )  const [inline]

Definition at line 160 of file rs.h.

bool mongo::RSBase::lockedByMe (  )  [inline]

Reimplemented in mongo::ReplSet.

Definition at line 166 of file rs.h.


Member Data Documentation

int mongo::RSBase::_locked [private]

Definition at line 126 of file rs.h.

Definition at line 127 of file rs.h.

Definition at line 125 of file rs.h.

const unsigned mongo::RSBase::magic

Definition at line 122 of file rs.h.


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


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:57 2013