| 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) { |
nothing calls this directly
no test coverage detected