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

Function GetMode

util/system/file_lock.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace {
9 int GetMode(const EFileLockType type) {
10 switch (type) {
11 case EFileLockType::Exclusive:
12 return LOCK_EX;
13 case EFileLockType::Shared:
14 return LOCK_SH;
15 default:
16 Y_UNREACHABLE();
17 }
18 Y_UNREACHABLE();
19 }
20} // namespace
21
22TFileLock::TFileLock(const TString& filename, const EFileLockType type)

Callers 2

AcquireMethod · 0.85
TryAcquireMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected