#include "lldb/Host/LockFileBase.h"
usingnamespacelldb;
usingnamespacelldb_private;
static Status AlreadyLocked() { … }
static Status NotLocked() { … }
LockFileBase::LockFileBase(int fd)
: … { … }
bool LockFileBase::IsLocked() const { … }
Status LockFileBase::WriteLock(const uint64_t start, const uint64_t len) { … }
Status LockFileBase::TryWriteLock(const uint64_t start, const uint64_t len) { … }
Status LockFileBase::ReadLock(const uint64_t start, const uint64_t len) { … }
Status LockFileBase::TryReadLock(const uint64_t start, const uint64_t len) { … }
Status LockFileBase::Unlock() { … }
bool LockFileBase::IsValidFile() const { … }
Status LockFileBase::DoLock(const Locker &locker, const uint64_t start,
const uint64_t len) { … }