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 () |
bool | TrySetRunning () |
bool | SetStopped () |
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.
ProcessRunLock::~ProcessRunLock | ( | ) |
Definition at line 19 of file common/ProcessRunLock.cpp.
References m_rwlock.
|
privatedelete |
|
privatedelete |
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.
Referenced by lldb_private::ProcessRunLock::ProcessRunLocker::Unlock().
bool ProcessRunLock::SetRunning | ( | ) |
Definition at line 38 of file common/ProcessRunLock.cpp.
References m_running, and m_rwlock.
Referenced by lldb_private::Process::SetPrivateState().
bool ProcessRunLock::SetStopped | ( | ) |
Definition at line 57 of file common/ProcessRunLock.cpp.
References m_running, and m_rwlock.
Referenced by lldb_private::Process::DestroyImpl(), lldb_private::Process::Detach(), lldb_private::Process::Finalize(), lldb_private::Process::Resume(), lldb_private::Process::ResumeSynchronous(), lldb_private::Process::RunPrivateStateThread(), lldb_private::Process::SetPrivateState(), lldb_private::Process::SetPublicState(), and lldb_private::Process::WaitForProcessToStop().
bool ProcessRunLock::TrySetRunning | ( | ) |
Definition at line 45 of file common/ProcessRunLock.cpp.
References m_running, and m_rwlock.
Referenced by lldb_private::Process::Attach(), lldb_private::Process::Finalize(), lldb_private::Process::LaunchPrivate(), lldb_private::Process::Resume(), and lldb_private::Process::ResumeSynchronous().
|
protected |
Definition at line 76 of file ProcessRunLock.h.
Referenced by ReadTryLock(), SetRunning(), SetStopped(), and TrySetRunning().
|
protected |
Definition at line 75 of file ProcessRunLock.h.
Referenced by ProcessRunLock(), ReadTryLock(), ReadUnlock(), SetRunning(), SetStopped(), TrySetRunning(), and ~ProcessRunLock().