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.
We recommend using Visual Studio 2017

reader_writer_lock::scoped_lock::scoped_lock Constructor


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.

explicit _CRTIMP scoped_lock(
   reader_writer_lock& _Reader_writer_lock


The reader_writer_lock object to acquire as a writer.


Header: concrt.h

Namespace: concurrency