LLDB mainline
|
#include <LockFileWindows.h>
Public Member Functions | |
LockFileWindows (int fd) | |
~LockFileWindows () | |
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 |
bool | IsValidFile () const 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) |
Private Attributes | |
HANDLE | m_file |
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 17 of file LockFileWindows.h.
|
explicit |
Definition at line 34 of file LockFileWindows.cpp.
LockFileWindows::~LockFileWindows | ( | ) |
Definition at line 37 of file LockFileWindows.cpp.
References lldb_private::LockFileBase::Unlock().
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 53 of file LockFileWindows.cpp.
References fileLock(), and m_file.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 57 of file LockFileWindows.cpp.
References fileLock(), and m_file.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 47 of file LockFileWindows.cpp.
References fileLock(), and m_file.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 62 of file LockFileWindows.cpp.
References lldb::eErrorTypeWin32, m_file, and lldb_private::LockFileBase::m_len.
|
overrideprotectedvirtual |
Implements lldb_private::LockFileBase.
Definition at line 43 of file LockFileWindows.cpp.
References fileLock(), and m_file.
|
overrideprotectedvirtual |
Reimplemented from lldb_private::LockFileBase.
Definition at line 39 of file LockFileWindows.cpp.
References lldb_private::LockFileBase::IsValidFile(), and m_file.
|
private |
Definition at line 36 of file LockFileWindows.h.
Referenced by DoReadLock(), DoTryReadLock(), DoTryWriteLock(), DoUnlock(), DoWriteLock(), and IsValidFile().