LLDB mainline
|
#include <LockFilePosix.h>
Public Member Functions | |
LockFilePosix (int fd) | |
~LockFilePosix () override | |
Public Member Functions inherited from lldb_private::LockFileBase | |
virtual | ~LockFileBase ()=default |
bool | IsLocked () const |
Status | WriteLock (const uint64_t start, const uint64_t len) |
Status | TryWriteLock (const uint64_t start, const uint64_t len) |
Status | ReadLock (const uint64_t start, const uint64_t len) |
Status | TryReadLock (const uint64_t start, const uint64_t len) |
Status | Unlock () |
Protected Member Functions | |
Status | DoWriteLock (const uint64_t start, const uint64_t len) override |
Status | DoTryWriteLock (const uint64_t start, const uint64_t len) override |
Status | DoReadLock (const uint64_t start, const uint64_t len) override |
Status | DoTryReadLock (const uint64_t start, const uint64_t len) override |
Status | DoUnlock () override |
Protected Member Functions inherited from lldb_private::LockFileBase | |
LockFileBase (int fd) | |
virtual bool | IsValidFile () const |
virtual Status | DoWriteLock (const uint64_t start, const uint64_t len)=0 |
virtual Status | DoTryWriteLock (const uint64_t start, const uint64_t len)=0 |
virtual Status | DoReadLock (const uint64_t start, const uint64_t len)=0 |
virtual Status | DoTryReadLock (const uint64_t start, const uint64_t len)=0 |
virtual Status | DoUnlock ()=0 |
Status | DoLock (const Locker &locker, const uint64_t start, const uint64_t len) |
Additional Inherited Members | |
Protected Types inherited from lldb_private::LockFileBase | |
using | Locker = std::function< Status(const uint64_t, const uint64_t)> |
Protected Attributes inherited from lldb_private::LockFileBase | |
int | m_fd |
bool | m_locked |
uint64_t | m_start |
uint64_t | m_len |
Definition at line 16 of file LockFilePosix.h.
|
explicit |
Definition at line 36 of file LockFilePosix.cpp.
|
override |
Definition at line 38 of file LockFilePosix.cpp.
References lldb_private::LockFileBase::Unlock().
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 48 of file LockFilePosix.cpp.
References fileLock(), and lldb_private::LockFileBase::m_fd.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 52 of file LockFilePosix.cpp.
References fileLock(), and lldb_private::LockFileBase::m_fd.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 44 of file LockFilePosix.cpp.
References fileLock(), and lldb_private::LockFileBase::m_fd.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 56 of file LockFilePosix.cpp.
References fileLock(), lldb_private::LockFileBase::m_fd, lldb_private::LockFileBase::m_len, and lldb_private::LockFileBase::m_start.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 40 of file LockFilePosix.cpp.
References fileLock(), and lldb_private::LockFileBase::m_fd.