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

Method fOwnLock

src/fastlock.cpp:483–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482
483bool fastlock::fOwnLock()
484{
485 int tid;
486 __atomic_load(&m_pidOwner, &tid, __ATOMIC_RELAXED);
487 return gettid() == tid;
488}
489
490int fastlock_unlock_recursive(struct fastlock *lock)
491{

Callers 10

pubsubSubscribeChannelFunction · 0.45
~rdbAsyncWorkThreadMethod · 0.45
getReplIndexFromOffsetFunction · 0.45
executeWithoutGlobalLockFunction · 0.45
unblockClientFunction · 0.45
armMethod · 0.45
prepareClientToWriteFunction · 0.45
unlinkClientFunction · 0.45

Calls 1

gettidFunction · 0.85

Tested by

no test coverage detected