Poco::RWLock Class Reference

#include <RWLock.h>

Inheritance diagram for Poco::RWLock:
Inheritance graph
[legend]

List of all members.

Public Types

typedef ScopedRWLock ScopedLock

Public Member Functions

void readLock ()
 Destroys the Reader/Writer lock.
 RWLock ()
bool tryReadLock ()
bool tryWriteLock ()
void unlock ()
void writeLock ()
 ~RWLock ()
 Creates the Reader/Writer lock.

Private Member Functions

RWLockoperator= (const RWLock &)
 RWLock (const RWLock &)
 Releases the read or write lock.

Detailed Description

A reader writer lock allows multiple concurrent readers or one exclusive writer.

Definition at line 57 of file RWLock.h.


Member Typedef Documentation

Definition at line 62 of file RWLock.h.


Constructor & Destructor Documentation

Poco::RWLock::RWLock (  ) 

Definition at line 47 of file RWLock.cpp.

Poco::RWLock::~RWLock (  ) 

Creates the Reader/Writer lock.

Definition at line 52 of file RWLock.cpp.

Poco::RWLock::RWLock ( const RWLock  )  [private]

Releases the read or write lock.


Member Function Documentation

RWLock& Poco::RWLock::operator= ( const RWLock  )  [private]
void Poco::RWLock::readLock (  )  [inline]

Destroys the Reader/Writer lock.

Definition at line 117 of file RWLock.h.

bool Poco::RWLock::tryReadLock (  )  [inline]

Acquires a read lock. If another thread currently holds a write lock, waits until the write lock is released.

Definition at line 123 of file RWLock.h.

bool Poco::RWLock::tryWriteLock (  )  [inline]

Acquires a write lock. If one or more other threads currently hold locks, waits until all locks are released. The results are undefined if the same thread already holds a read or write lock

Definition at line 135 of file RWLock.h.

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

Tries to acquire a write lock. Immediately returns true if successful, or false if one or more other threads currently hold locks. The result is undefined if the same thread already holds a read or write lock.

Definition at line 141 of file RWLock.h.

void Poco::RWLock::writeLock (  )  [inline]

Tries to acquire a read lock. Immediately returns true if successful, or false if another thread currently holds a write lock.

Definition at line 129 of file RWLock.h.


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


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Fri Jan 11 11:39:02 2013