MCPcopy Create free account
hub / github.com/NativeScript/android / ReleaseReadUnlock

Method ReleaseReadUnlock

test-app/runtime/src/main/cpp/ReadWriteLock.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void ReadWriteLock::ReleaseReadUnlock() {
25 //get lock decrement active readers and notify one waiting writer
26 std::unique_lock<std::mutex> lk(shared);
27 active_readers--;
28 lk.unlock();
29 writer_gate.notify_one();
30}
31
32void ReadWriteLock::AquireWriteLock() {
33 //declare waiting and wait till there are no more active readers or writers and get lock

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.80

Tested by

no test coverage detected