Freigeben über


reader_writer_lock::unlock Method

Unlocks the reader-writer lock based on who locked it, reader or writer.

void unlock();

Remarks

If there are writers waiting on the lock, the release of the lock will always go to the next writer in FIFO order. This lock is biased towards writers and can starve readers under a continuous load of writers.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

reader_writer_lock Class

reader_writer_lock::lock Method

reader_writer_lock::lock_read Method

reader_writer_lock::try_lock Method

reader_writer_lock::try_lock_read Method