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

Method UnlockRecursive

util/generic/singleton.cpp:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void NPrivate::UnlockRecursive(std::atomic<size_t>& lock) noexcept {
60 Y_ABORT_UNLESS(lock.load(std::memory_order_acquire) == MyThreadId(), "unlock from another thread?!?!");
61 lock.store(0);
62}

Callers

nothing calls this directly

Calls 3

MyThreadIdFunction · 0.85
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected