Udostępnij za pośrednictwem


reader_writer_lock::try_lock Method

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

_CRTIMP 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