Freigeben über


reader_writer_lock::try_lock Method

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

bool try_lock();

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