MCPcopy Create free account
hub / github.com/catboost/catboost / AcquireRead

Method AcquireRead

util/system/rwlock.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void 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}
60
61bool TRWMutex::TImpl::TryAcquireRead() noexcept {
62 with_lock (Lock_) {

Callers 3

AcquireMethod · 0.80
RunReadersMethod · 0.80
RunReadersWritersMethod · 0.80

Calls 2

LastSystemErrorTextFunction · 0.70
SignalMethod · 0.45

Tested by

no test coverage detected