Share via


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;

Members

Public Constructors

Name

Description

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.

Inheritance Hierarchy

reader_writer_lock::scoped_lock_read

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

reader_writer_lock Class