Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ with_lock
Function
with_lock
util/system/rwlock.cpp:50–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
49
void TRWMutex::TImpl::AcquireRead() noexcept {
50
with_lock (Lock_) {
51
while (BlockedWriters_ || State_ < 0) {
52
ReadCond_.Wait(Lock_);
53
}
54
55
++State_;
56
}
57
58
ReadCond_.Signal();
59
}
Callers
1
Communicate
Method · 0.70
Calls
1
Wait
Method · 0.45
Tested by
no test coverage detected