Share via


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
);

Parameters

  • _Reader_writer_lock
    The reader_writer_lock object to acquire as a reader.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

reader_writer_lock::scoped_lock_read Class