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

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 ProcessRunLockoperator= (const ProcessRunLock &)=delete
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ProcessRunLock() [1/2]

ProcessRunLock::ProcessRunLock ( )

Definition at line 14 of file common/ProcessRunLock.cpp.

References m_rwlock.

◆ ~ProcessRunLock()

ProcessRunLock::~ProcessRunLock ( )

Definition at line 19 of file common/ProcessRunLock.cpp.

References m_rwlock.

◆ ProcessRunLock() [2/2]

lldb_private::ProcessRunLock::ProcessRunLock ( const ProcessRunLock )
privatedelete

Member Function Documentation

◆ operator=()

const ProcessRunLock & lldb_private::ProcessRunLock::operator= ( const ProcessRunLock )
privatedelete

◆ ReadTryLock()

bool ProcessRunLock::ReadTryLock ( )

◆ ReadUnlock()

bool ProcessRunLock::ReadUnlock ( )

◆ SetRunning()

bool ProcessRunLock::SetRunning ( )

Definition at line 38 of file common/ProcessRunLock.cpp.

References m_running, and m_rwlock.

Referenced by lldb_private::Process::SetPrivateState().

◆ SetStopped()

bool ProcessRunLock::SetStopped ( )

◆ TrySetRunning()

bool ProcessRunLock::TrySetRunning ( )

Member Data Documentation

◆ m_running

bool lldb_private::ProcessRunLock::m_running = false
protected

Definition at line 76 of file ProcessRunLock.h.

Referenced by ReadTryLock(), SetRunning(), SetStopped(), and TrySetRunning().

◆ m_rwlock

lldb::rwlock_t lldb_private::ProcessRunLock::m_rwlock
protected

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