The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

explicit _CRTIMP scoped_lock_read(
   reader_writer_lock& _Reader_writer_lock


The reader_writer_lock object to acquire as a reader.


Header: concrt.h

Namespace: concurrency