Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
reader_writer_lock::scoped_lock_read Class

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;



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.


Header: concrt.h

Namespace: concurrency

© 2015 Microsoft