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

Method AcquireReaderForkFriendlySlow

library/cpp/yt/threading/rw_spin_lock.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void TUncheckedReaderWriterSpinLock::AcquireReaderForkFriendlySlow() noexcept
25{
26 TSpinWait spinWait(Location_, ESpinLockActivityKind::Read);
27 while (!TryAcquireReaderForkFriendly()) {
28 spinWait.Wait();
29 }
30}
31
32void TUncheckedReaderWriterSpinLock::AcquireWriterSlow() noexcept
33{

Callers

nothing calls this directly

Calls 1

WaitMethod · 0.45

Tested by

no test coverage detected