9#ifndef LLDB_HOST_LOCKFILEBASE_H
10#define LLDB_HOST_LOCKFILEBASE_H
33 using Locker = std::function<
Status(
const uint64_t,
const uint64_t)>;
std::function< Status(const uint64_t, const uint64_t)> Locker
virtual ~LockFileBase()=default
virtual bool IsValidFile() const
Status TryWriteLock(const uint64_t start, const uint64_t len)
virtual Status DoTryReadLock(const uint64_t start, const uint64_t len)=0
Status WriteLock(const uint64_t start, const uint64_t len)
Status TryReadLock(const uint64_t start, const uint64_t len)
virtual Status DoTryWriteLock(const uint64_t start, const uint64_t len)=0
Status ReadLock(const uint64_t start, const uint64_t len)
Status DoLock(const Locker &locker, const uint64_t start, const uint64_t len)
virtual Status DoUnlock()=0
virtual Status DoWriteLock(const uint64_t start, const uint64_t len)=0
virtual Status DoReadLock(const uint64_t start, const uint64_t len)=0
A class that represents a running process on the host machine.