Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ TryLock
Method
TryLock
library/cpp/lfalloc/lf_allocX64.h:563–566 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
561
char* Pad2[15];
562
563
bool TryLock()
564
{
565
return (LockVar == LF_LOCK_FREE && DoCas(&LockVar, LF_LOCK_LOCKED, LF_LOCK_FREE) == LF_LOCK_FREE);
566
}
567
568
void FutexWait()
569
{
Callers
2
TryLock
Method · 0.45
SlowLFAlloc
Function · 0.45
Calls
1
DoCas
Function · 0.70
Tested by
no test coverage detected