STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Concurrency::reader_writer_lock::scoped_lock_read Class Reference

An exception safe RAII wrapper that can be used to acquire reader_writer_lock lock objects as a reader. More...

#include <concrt.h>

Public Member Functions

_CONCRTIMP scoped_lock_read (reader_writer_lock &_Reader_writer_lock)
 Constructs a scoped_lock_read object and acquires the reader_writer_lock object passed in the _Reader_writer_lock parameter as a reader. If the lock is held by another thread as a writer or there are pending writers, this call will block. More...
 
_CONCRTIMP ~scoped_lock_read ()
 Destroys a scoped_lock_read object and releases the lock supplied in its constructor. More...
 

Private Member Functions

 scoped_lock_read (const scoped_lock_read &)
 
scoped_lock_read const & operator= (const scoped_lock_read &)
 

Private Attributes

reader_writer_lock_M_reader_writer_lock
 

Detailed Description

An exception safe RAII wrapper that can be used to acquire reader_writer_lock lock objects as a reader.

Constructor & Destructor Documentation

_CONCRTIMP Concurrency::reader_writer_lock::scoped_lock_read::scoped_lock_read ( reader_writer_lock _Reader_writer_lock)
explicit

Constructs a scoped_lock_read object and acquires the reader_writer_lock object passed in the _Reader_writer_lock parameter as a reader. If the lock is held by another thread as a writer or there are pending writers, this call will block.

Parameters
_Reader_writer_lockThe reader_writer_lock object to acquire as a reader.
_CONCRTIMP Concurrency::reader_writer_lock::scoped_lock_read::~scoped_lock_read ( )

Destroys a scoped_lock_read object and releases the lock supplied in its constructor.

Concurrency::reader_writer_lock::scoped_lock_read::scoped_lock_read ( const scoped_lock_read )
private

Member Function Documentation

scoped_lock_read const& Concurrency::reader_writer_lock::scoped_lock_read::operator= ( const scoped_lock_read )
private

Member Data Documentation

reader_writer_lock& Concurrency::reader_writer_lock::scoped_lock_read::_M_reader_writer_lock
private

The documentation for this class was generated from the following file: