mongo::RWLock Class Reference

#include <rwlock.h>

List of all members.

Public Member Functions

bool _try (int millis, bool write)
void lock ()
void lock_shared ()
bool lock_shared_try (int millis)
bool lock_try (int millis=0)
 RWLock (const char *)
void unlock ()
void unlock_shared ()
 ~RWLock ()

Private Member Functions

void check (int x)

Private Attributes

pthread_rwlock_t _lock

Detailed Description

Definition at line 147 of file rwlock.h.


Constructor & Destructor Documentation

mongo::RWLock::RWLock ( const char *   )  [inline]

Definition at line 162 of file rwlock.h.

mongo::RWLock::~RWLock (  )  [inline]

Definition at line 167 of file rwlock.h.


Member Function Documentation

bool mongo::RWLock::_try ( int  millis,
bool  write 
) [inline]

Definition at line 208 of file rwlock.h.

void mongo::RWLock::check ( int  x  )  [inline, private]

Definition at line 150 of file rwlock.h.

void mongo::RWLock::lock (  )  [inline]

Definition at line 173 of file rwlock.h.

void mongo::RWLock::lock_shared (  )  [inline]

Definition at line 186 of file rwlock.h.

bool mongo::RWLock::lock_shared_try ( int  millis  )  [inline]

Definition at line 194 of file rwlock.h.

bool mongo::RWLock::lock_try ( int  millis = 0  )  [inline]

Definition at line 198 of file rwlock.h.

void mongo::RWLock::unlock (  )  [inline]

Definition at line 179 of file rwlock.h.

void mongo::RWLock::unlock_shared (  )  [inline]

Definition at line 190 of file rwlock.h.


Member Data Documentation

pthread_rwlock_t mongo::RWLock::_lock [private]

Definition at line 148 of file rwlock.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