STLdoc
STLdocumentation
|
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)] |
An exception safe RAII wrapper that can be used to acquire reader_writer_lock
lock objects as a writer.
|
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.
_Reader_writer_lock | The 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.
|
private |
|
private |
|
private |
|
private |