Поделиться через


reader_writer_lock::scoped_lock Class

An exception safe RAII wrapper that can be used to acquire reader_writer_lock lock objects as a writer.

class scoped_lock;

Members

Public Constructors

Name

Description

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.

reader_writer_lock::scoped_lock::~scoped_lock Destructor

Destroys a reader_writer_lock object and releases the lock supplied in its constructor.

Inheritance Hierarchy

reader_writer_lock::scoped_lock

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

reader_writer_lock Class