LLDB mainline
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
lldb_private::LockFileWindows Class Reference

#include <LockFileWindows.h>

Inheritance diagram for lldb_private::LockFileWindows:
Inheritance graph
[legend]

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
 

Detailed Description

Definition at line 17 of file LockFileWindows.h.

Constructor & Destructor Documentation

◆ LockFileWindows()

LockFileWindows::LockFileWindows ( int  fd)
explicit

Definition at line 34 of file LockFileWindows.cpp.

◆ ~LockFileWindows()

LockFileWindows::~LockFileWindows ( )

Definition at line 37 of file LockFileWindows.cpp.

References lldb_private::LockFileBase::Unlock().

Member Function Documentation

◆ DoReadLock()

Status LockFileWindows::DoReadLock ( const uint64_t  start,
const uint64_t  len 
)
overrideprotectedvirtual

Implements lldb_private::LockFileBase.

Definition at line 53 of file LockFileWindows.cpp.

References fileLock(), and m_file.

◆ DoTryReadLock()

Status LockFileWindows::DoTryReadLock ( const uint64_t  start,
const uint64_t  len 
)
overrideprotectedvirtual

Implements lldb_private::LockFileBase.

Definition at line 57 of file LockFileWindows.cpp.

References fileLock(), and m_file.

◆ DoTryWriteLock()

Status LockFileWindows::DoTryWriteLock ( const uint64_t  start,
const uint64_t  len 
)
overrideprotectedvirtual

Implements lldb_private::LockFileBase.

Definition at line 47 of file LockFileWindows.cpp.

References fileLock(), and m_file.

◆ DoUnlock()

Status LockFileWindows::DoUnlock ( )
overrideprotectedvirtual

◆ DoWriteLock()

Status LockFileWindows::DoWriteLock ( const uint64_t  start,
const uint64_t  len 
)
overrideprotectedvirtual

Implements lldb_private::LockFileBase.

Definition at line 43 of file LockFileWindows.cpp.

References fileLock(), and m_file.

◆ IsValidFile()

bool LockFileWindows::IsValidFile ( ) const
overrideprotectedvirtual

Reimplemented from lldb_private::LockFileBase.

Definition at line 39 of file LockFileWindows.cpp.

References lldb_private::LockFileBase::IsValidFile(), and m_file.

Member Data Documentation

◆ m_file

HANDLE lldb_private::LockFileWindows::m_file
private

The documentation for this class was generated from the following files: