Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:48

0001 //===-- LockFilePosix.h -----------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_HOST_POSIX_LOCKFILEPOSIX_H
0010 #define LLDB_HOST_POSIX_LOCKFILEPOSIX_H
0011 
0012 #include "lldb/Host/LockFileBase.h"
0013 
0014 namespace lldb_private {
0015 
0016 class LockFilePosix : public LockFileBase {
0017 public:
0018   explicit LockFilePosix(int fd);
0019   ~LockFilePosix() override;
0020 
0021 protected:
0022   Status DoWriteLock(const uint64_t start, const uint64_t len) override;
0023 
0024   Status DoTryWriteLock(const uint64_t start, const uint64_t len) override;
0025 
0026   Status DoReadLock(const uint64_t start, const uint64_t len) override;
0027 
0028   Status DoTryReadLock(const uint64_t start, const uint64_t len) override;
0029 
0030   Status DoUnlock() override;
0031 };
0032 
0033 } // namespace lldb_private
0034 
0035 #endif // LLDB_HOST_POSIX_LOCKFILEPOSIX_H