openvrml::read_write_mutex::scoped_read_lock Class Reference

#include <openvrml/read_write_mutex.h>

Inheritance diagram for openvrml::read_write_mutex::scoped_read_lock:

List of all members.


Detailed Description

Lock the mutex for read access.

Public Member Functions

 scoped_read_lock (read_write_mutex &mutex)
 Construct.
 ~scoped_read_lock ()
 Destroy.

Private Attributes

read_write_mutexmutex_
 The read_write_mutex being locked.
boost::mutex::scoped_lock lock_
 A lock for read_write_mutex::mutex_.

Friends

class scoped_read_write_lock

Constructor & Destructor Documentation

openvrml::read_write_mutex::scoped_read_lock::scoped_read_lock ( read_write_mutex mutex  )  [explicit]

Construct.

Acquire the lock.

Parameters:
[in] mutex a read_write_mutex.

openvrml::read_write_mutex::scoped_read_lock::~scoped_read_lock (  ) 

Destroy.

Release the lock.


Member Data Documentation

boost::mutex::scoped_lock openvrml::read_write_mutex::scoped_read_lock::lock_ [private]

A lock for read_write_mutex::mutex_.

For internal use only.