LLDB mainline
|
#include <HostNativeThreadBase.h>
Public Member Functions | |
HostNativeThreadBase ()=default | |
HostNativeThreadBase (lldb::thread_t thread) | |
virtual | ~HostNativeThreadBase ()=default |
virtual Status | Join (lldb::thread_result_t *result)=0 |
virtual Status | Cancel ()=0 |
virtual bool | IsJoinable () const |
virtual void | Reset () |
virtual bool | EqualsThread (lldb::thread_t thread) const |
lldb::thread_t | Release () |
lldb::thread_t | GetSystemHandle () const |
lldb::thread_result_t | GetResult () const |
Static Protected Member Functions | |
static lldb::thread_result_t THREAD_ROUTINE | ThreadCreateTrampoline (lldb::thread_arg_t arg) |
Protected Attributes | |
lldb::thread_t | m_thread = LLDB_INVALID_HOST_THREAD |
lldb::thread_result_t | m_result = 0 |
Private Member Functions | |
HostNativeThreadBase (const HostNativeThreadBase &)=delete | |
const HostNativeThreadBase & | operator= (const HostNativeThreadBase &)=delete |
Friends | |
class | ThreadLauncher |
Definition at line 24 of file HostNativeThreadBase.h.
|
privatedelete |
|
default |
|
explicit |
Definition at line 21 of file HostNativeThreadBase.cpp.
|
virtualdefault |
|
pure virtual |
Implemented in lldb_private::HostThreadPosix, and lldb_private::HostThreadWindows.
|
virtual |
Reimplemented in lldb_private::HostThreadWindows.
Definition at line 41 of file HostNativeThreadBase.cpp.
References m_thread.
lldb::thread_result_t HostNativeThreadBase::GetResult | ( | ) | const |
Definition at line 28 of file HostNativeThreadBase.cpp.
References m_result.
lldb::thread_t HostNativeThreadBase::GetSystemHandle | ( | ) | const |
Definition at line 24 of file HostNativeThreadBase.cpp.
References m_thread.
Referenced by lldb_private::RegisterContextWindows::ApplyAllRegisterValues(), lldb_private::RegisterContextWindows::CacheAllRegisterValues(), lldb_private::TargetThreadWindows::DoResume(), lldb_private::NativeThreadWindows::DoResume(), lldb_private::NativeThreadWindows::DoStop(), lldb_private::TargetThreadWindows::GetName(), lldb_private::NativeRegisterContextWindows::GetThreadHandle(), and lldb_private::TargetThreadWindows::RefreshStateAfterStop().
|
virtual |
Definition at line 32 of file HostNativeThreadBase.cpp.
References LLDB_INVALID_HOST_THREAD, and m_thread.
Referenced by lldb_private::HostThreadPosix::Cancel(), lldb_private::HostThreadPosix::Detach(), lldb_private::HostThreadPosix::Join(), and lldb_private::HostThreadWindows::Join().
|
pure virtual |
Implemented in lldb_private::HostThreadPosix, and lldb_private::HostThreadWindows.
|
privatedelete |
lldb::thread_t HostNativeThreadBase::Release | ( | ) |
Definition at line 45 of file HostNativeThreadBase.cpp.
References LLDB_INVALID_HOST_THREAD, m_result, and m_thread.
|
virtual |
Reimplemented in lldb_private::HostThreadWindows.
Definition at line 36 of file HostNativeThreadBase.cpp.
References LLDB_INVALID_HOST_THREAD, m_result, and m_thread.
Referenced by lldb_private::HostThreadPosix::Detach(), lldb_private::HostThreadPosix::Join(), and lldb_private::HostThreadWindows::Reset().
|
staticprotected |
Definition at line 54 of file HostNativeThreadBase.cpp.
References lldb_private::GetLog(), LLDB_LOGF, and lldb_private::Thread.
Referenced by lldb_private::ThreadLauncher::LaunchThread(), and lldb_private::HostThreadMacOSX::ThreadCreateTrampoline().
|
friend |
Definition at line 25 of file HostNativeThreadBase.h.
|
protected |
Definition at line 49 of file HostNativeThreadBase.h.
Referenced by GetResult(), Release(), and Reset().
|
protected |
Definition at line 48 of file HostNativeThreadBase.h.
Referenced by lldb_private::HostThreadPosix::Cancel(), lldb_private::HostThreadWindows::Cancel(), lldb_private::HostThreadPosix::Detach(), EqualsThread(), GetSystemHandle(), lldb_private::HostThreadWindows::GetThreadId(), IsJoinable(), lldb_private::HostThreadPosix::Join(), lldb_private::HostThreadWindows::Join(), Release(), Reset(), and lldb_private::HostThreadWindows::Reset().