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

Method AcquireWriterSlow

library/cpp/yt/threading/rw_spin_lock.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void TUncheckedReaderWriterSpinLock::AcquireWriterSlow() noexcept
33{
34 TSpinWait spinWait(Location_, ESpinLockActivityKind::Write);
35 while (!TryAndTryAcquireWriter()) {
36 spinWait.Wait();
37 }
38}
39
40////////////////////////////////////////////////////////////////////////////////
41

Callers

nothing calls this directly

Calls 1

WaitMethod · 0.45

Tested by

no test coverage detected