| 7 | |
| 8 | namespace { |
| 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 | |
| 22 | TFileLock::TFileLock(const TString& filename, const EFileLockType type) |
no outgoing calls
no test coverage detected