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

Method Acquire

util/system/mutex.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 inline void Acquire() noexcept {
59#if defined(_win_)
60 EnterCriticalSection(&Obj);
61#else
62 int result = pthread_mutex_lock(&Obj);
63 Y_ABORT_UNLESS(result == 0, "mutex lock failure (%s)", LastSystemErrorText(result));
64#endif
65 }
66
67#if defined(_win_)
68 static bool TryEnterCriticalSectionInt(CRITICAL_SECTION* obj) {

Callers

nothing calls this directly

Calls 1

LastSystemErrorTextFunction · 0.70

Tested by

no test coverage detected