LLDB mainline
|
A class used to prevent the process from starting while other threads are accessing its data, and prevent access to its data while it is running. More...
#include "lldb/Host/ProcessRunLock.h"
Classes | |
class | ProcessRunLocker |
Public Member Functions | |
ProcessRunLock () | |
~ProcessRunLock () | |
bool | ReadTryLock () |
bool | ReadUnlock () |
bool | SetRunning () |
Set the process to running. | |
bool | SetStopped () |
Set the process to stopped. |
Protected Attributes | |
lldb::rwlock_t | m_rwlock |
bool | m_running = false |
Private Member Functions | |
ProcessRunLock (const ProcessRunLock &)=delete | |
const ProcessRunLock & | operator= (const ProcessRunLock &)=delete |
A class used to prevent the process from starting while other threads are accessing its data, and prevent access to its data while it is running.
Definition at line 25 of file ProcessRunLock.h.
ProcessRunLock::ProcessRunLock | ( | ) |
Definition at line 14 of file common/ProcessRunLock.cpp.
References m_rwlock.
Referenced by operator=(), ProcessRunLock(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
ProcessRunLock::~ProcessRunLock | ( | ) |
Definition at line 19 of file common/ProcessRunLock.cpp.
References m_rwlock.
|
privatedelete |
References ProcessRunLock().
|
privatedelete |
References ProcessRunLock().
bool ProcessRunLock::ReadTryLock | ( | ) |
Definition at line 24 of file common/ProcessRunLock.cpp.
References m_running, and m_rwlock.
Referenced by lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
bool ProcessRunLock::ReadUnlock | ( | ) |
Definition at line 34 of file common/ProcessRunLock.cpp.
References m_rwlock.
bool ProcessRunLock::SetRunning | ( | ) |
Set the process to running.
Returns true if the process was stopped. Return false if the process was running.
Definition at line 38 of file common/ProcessRunLock.cpp.
bool ProcessRunLock::SetStopped | ( | ) |
Set the process to stopped.
Returns true if the process was running. Returns false if the process was stopped.
Definition at line 46 of file common/ProcessRunLock.cpp.
|
protected |
Definition at line 94 of file ProcessRunLock.h.
Referenced by ReadTryLock(), SetRunning(), and SetStopped().
|
protected |
Definition at line 93 of file ProcessRunLock.h.
Referenced by ProcessRunLock(), ReadTryLock(), ReadUnlock(), SetRunning(), SetStopped(), and ~ProcessRunLock().