Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

reader_writer_lock::scoped_lock_read Class

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

class scoped_lock_read;

Name

Description

reader_writer_lock::scoped_lock_read::scoped_lock_read Constructor

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.

reader_writer_lock::scoped_lock_read::~scoped_lock_read Destructor

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

scoped_lock_read

Header: concrt.h

Namespace: concurrency

Show:
© 2015 Microsoft