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

Method AcquireSlow

library/cpp/yt/threading/spin_lock.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5////////////////////////////////////////////////////////////////////////////////
6
7void TSpinLock::AcquireSlow() noexcept
8{
9 TSpinWait spinWait(Location_, ESpinLockActivityKind::ReadWrite);
10 while (!TryAndTryAcquire()) {
11 spinWait.Wait();
12 }
13}
14
15////////////////////////////////////////////////////////////////////////////////
16

Callers

nothing calls this directly

Calls 1

WaitMethod · 0.45

Tested by

no test coverage detected