Compartir a través de


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

Parameters

  • _Reader_writer_lock
    The reader_writer_lock object to acquire as a writer.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

reader_writer_lock::scoped_lock Class