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

Method ReleaseWrite

util/system/rwlock.cpp:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void TRWMutex::TImpl::ReleaseWrite() noexcept {
111 Lock_.Acquire();
112 State_ = 0;
113
114 if (BlockedWriters_) {
115 Lock_.Release();
116 WriteCond_.Signal();
117 } else {
118 Lock_.Release();
119 ReadCond_.Signal();
120 }
121}
122
123void TRWMutex::TImpl::Release() noexcept {
124 Lock_.Acquire();

Callers 2

ReleaseMethod · 0.80
RunReadersWritersMethod · 0.80

Calls 4

LastSystemErrorTextFunction · 0.70
AcquireMethod · 0.45
ReleaseMethod · 0.45
SignalMethod · 0.45

Tested by

no test coverage detected