次の方法で共有


reader_writer_lock::try_lock_read Method

Attempts to acquire the reader-writer lock as a reader without blocking.

bool try_lock_read();

Return Value

If the lock was acquired, the value true; otherwise, the value false.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

reader_writer_lock Class

reader_writer_lock::unlock Method