Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
483
bool fastlock::fOwnLock()
484
{
485
int tid;
486
__atomic_load(&m_pidOwner, &tid, __ATOMIC_RELAXED);
487
return gettid() == tid;
488
}
489
490
int fastlock_unlock_recursive(struct fastlock *lock)
491
{
Callers
10
pubsubSubscribeChannel
Function · 0.45
~rdbAsyncWorkThread
Method · 0.45
getReplIndexFromOffset
Function · 0.45
flushReplBacklogToClients
Function · 0.45
executeWithoutGlobalLock
Function · 0.45
unblockClient
Function · 0.45
arm
Method · 0.45
clientInstallWriteHandler
Function · 0.45
prepareClientToWrite
Function · 0.45
unlinkClient
Function · 0.45
Calls
1
gettid
Function · 0.85
Tested by
no test coverage detected