[all-commits] [llvm/llvm-project] 032ed3: [Support] Class to facilitate file locking

Serge Pavlov via All-commits all-commits at lists.llvm.org
Wed Jul 29 23:43:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 032ed39defc7403b94c367fa43432606c418e946
      https://github.com/llvm/llvm-project/commit/032ed39defc7403b94c367fa43432606c418e946
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2020-07-30 (Thu, 30 Jul 2020)

  Changed paths:
    M llvm/include/llvm/Support/FileSystem.h
    M llvm/include/llvm/Support/raw_ostream.h
    M llvm/lib/Support/raw_ostream.cpp
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list