LLDB mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBMutex Class Reference

#include <SBMutex.h>

Public Member Functions

 SBMutex ()
 
 SBMutex (const SBMutex &rhs)
 
const SBMutexoperator= (const SBMutex &rhs)
 
 ~SBMutex ()
 
bool IsValid () const
 Returns true if this lock has ownership of the underlying mutex.
 
void lock () const
 Blocking operation that takes ownership of this lock.
 
void unlock () const
 Releases ownership of this lock.
 

Private Member Functions

 SBMutex (lldb::TargetSP target_sp)
 

Private Attributes

std::shared_ptr< std::recursive_mutex > m_opaque_sp
 

Friends

class SBTarget
 

Detailed Description

Definition at line 18 of file SBMutex.h.

Constructor & Destructor Documentation

◆ SBMutex() [1/3]

SBMutex::SBMutex ( )

Definition at line 19 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBMutex() [2/3]

SBMutex::SBMutex ( const SBMutex rhs)

Definition at line 23 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBMutex()

SBMutex::~SBMutex ( )

Definition at line 40 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBMutex() [3/3]

SBMutex::SBMutex ( lldb::TargetSP  target_sp)
private

Definition at line 34 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA.

Member Function Documentation

◆ IsValid()

bool SBMutex::IsValid ( ) const

Returns true if this lock has ownership of the underlying mutex.

Definition at line 42 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ lock()

void SBMutex::lock ( ) const

Blocking operation that takes ownership of this lock.

Definition at line 48 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ operator=()

const SBMutex & SBMutex::operator= ( const SBMutex rhs)

Definition at line 27 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ unlock()

void SBMutex::unlock ( ) const

Releases ownership of this lock.

Definition at line 55 of file SBMutex.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

Friends And Related Function Documentation

◆ SBTarget

friend class SBTarget
friend

Definition at line 38 of file SBMutex.h.

Member Data Documentation

◆ m_opaque_sp

std::shared_ptr<std::recursive_mutex> lldb::SBMutex::m_opaque_sp
private

Definition at line 40 of file SBMutex.h.

Referenced by IsValid(), lock(), operator=(), and unlock().


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