HomePhabricator

[Support] Class to facilitate file locking

Authored by sepavloff on Apr 28 2020, 9:26 PM.

Description

[Support] Class to facilitate file locking

This change define RAII class FileLocker and methods lock and
tryLockFor of the class raw_fd_stream to facilitate using file locks.

Differential Revision: https://reviews.llvm.org/D79066

Details

Committed
sepavloffJul 29 2020, 11:42 PM
Differential Revision
D79066: [Support] Class to facilitate file locking
Parents
rG3678ad88a6a1: [NFC] Remove unused variable
Branches
Unknown
Tags
Unknown