|
LLDB mainline
|
#include <SBMutex.h>
Public Member Functions | |
| SBMutex () | |
| SBMutex (const SBMutex &rhs) | |
| const SBMutex & | operator= (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. | |
| bool | try_lock () const |
| Tries to lock the mutex. | |
Private Member Functions | |
| SBMutex (lldb::TargetSP target_sp) | |
Private Attributes | |
| std::shared_ptr< std::recursive_mutex > | m_opaque_sp |
Friends | |
| class | SBTarget |
| SBMutex::SBMutex | ( | ) |
Definition at line 19 of file SBMutex.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by operator=(), and SBMutex().
| SBMutex::SBMutex | ( | const SBMutex & | rhs | ) |
Definition at line 23 of file SBMutex.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBMutex().
| SBMutex::~SBMutex | ( | ) |
Definition at line 40 of file SBMutex.cpp.
References LLDB_INSTRUMENT_VA.
|
private |
Definition at line 34 of file SBMutex.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
| 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.
| 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.
Definition at line 27 of file SBMutex.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBMutex().
| bool SBMutex::try_lock | ( | ) | const |
Tries to lock the mutex.
Returns immediately. On successful lock acquisition returns true, otherwise returns false.
Definition at line 62 of file SBMutex.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
| 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.
|
friend |
|
private |
Definition at line 44 of file SBMutex.h.
Referenced by IsValid(), lock(), operator=(), SBMutex(), SBMutex(), SBMutex(), try_lock(), and unlock().