MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / upgradeWrite

Method upgradeWrite

src/readwritelock.h:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 void upgradeWrite(bool exclusive = true) {
57 releaseRead();
58 acquireWrite(exclusive);
59 }
60
61 bool tryAcquireWrite(bool exclusive = true) {
62 std::unique_lock<fastlock> rm(m_readLock, std::defer_lock);

Callers 1

aeAcquireForkLockFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected