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 Class Reference

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

#include <concrt.h>

Public Member Functions

_CRTIMP scoped_lock (reader_writer_lock &_Reader_writer_lock)
 Constructs a scoped_lock object and acquires the reader_writer_lock object passed in the _Reader_writer_lock parameter as a writer. If the lock is held by another thread, this call will block. More...
 
_CRTIMP ~scoped_lock ()
 Destroys a reader_writer_lock object and releases the lock supplied in its constructor. More...
 

Private Member Functions

 scoped_lock (const scoped_lock &)
 
scoped_lock const & operator= (const scoped_lock &)
 

Private Attributes

reader_writer_lock_M_reader_writer_lock
 
_CONCRT_BUFFER _M_writerNode [(4 *sizeof(void *)+2 *sizeof(unsigned int)+sizeof(_CONCRT_BUFFER)-1)/sizeof(_CONCRT_BUFFER)]
 

Detailed Description

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

Constructor & Destructor Documentation

_CRTIMP Concurrency::reader_writer_lock::scoped_lock::scoped_lock ( reader_writer_lock _Reader_writer_lock)
explicit

Constructs a scoped_lock object and acquires the reader_writer_lock object passed in the _Reader_writer_lock parameter as a writer. If the lock is held by another thread, this call will block.

Parameters
_Reader_writer_lockThe reader_writer_lock object to acquire as a writer.
_CRTIMP Concurrency::reader_writer_lock::scoped_lock::~scoped_lock ( )

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

Concurrency::reader_writer_lock::scoped_lock::scoped_lock ( const scoped_lock )
private

Member Function Documentation

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

Member Data Documentation

reader_writer_lock& Concurrency::reader_writer_lock::scoped_lock::_M_reader_writer_lock
private
_CONCRT_BUFFER Concurrency::reader_writer_lock::scoped_lock::_M_writerNode[(4 *sizeof(void *)+2 *sizeof(unsigned int)+sizeof(_CONCRT_BUFFER)-1)/sizeof(_CONCRT_BUFFER)]
private

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