LLDB mainline
Public Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
lldb_private::HostNativeThreadBase Class Referenceabstract

#include <HostNativeThreadBase.h>

Inheritance diagram for lldb_private::HostNativeThreadBase:
Inheritance graph
[legend]

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 HostNativeThreadBaseoperator= (const HostNativeThreadBase &)=delete
 

Friends

class ThreadLauncher
 

Detailed Description

Definition at line 24 of file HostNativeThreadBase.h.

Constructor & Destructor Documentation

◆ HostNativeThreadBase() [1/3]

lldb_private::HostNativeThreadBase::HostNativeThreadBase ( const HostNativeThreadBase )
privatedelete

◆ HostNativeThreadBase() [2/3]

lldb_private::HostNativeThreadBase::HostNativeThreadBase ( )
default

◆ HostNativeThreadBase() [3/3]

HostNativeThreadBase::HostNativeThreadBase ( lldb::thread_t  thread)
explicit

Definition at line 21 of file HostNativeThreadBase.cpp.

◆ ~HostNativeThreadBase()

virtual lldb_private::HostNativeThreadBase::~HostNativeThreadBase ( )
virtualdefault

Member Function Documentation

◆ Cancel()

virtual Status lldb_private::HostNativeThreadBase::Cancel ( )
pure virtual

◆ EqualsThread()

bool HostNativeThreadBase::EqualsThread ( lldb::thread_t  thread) const
virtual

Reimplemented in lldb_private::HostThreadWindows.

Definition at line 41 of file HostNativeThreadBase.cpp.

References m_thread.

◆ GetResult()

lldb::thread_result_t HostNativeThreadBase::GetResult ( ) const

Definition at line 28 of file HostNativeThreadBase.cpp.

References m_result.

◆ GetSystemHandle()

lldb::thread_t HostNativeThreadBase::GetSystemHandle ( ) const

◆ IsJoinable()

bool HostNativeThreadBase::IsJoinable ( ) const
virtual

◆ Join()

virtual Status lldb_private::HostNativeThreadBase::Join ( lldb::thread_result_t result)
pure virtual

◆ operator=()

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

◆ Release()

lldb::thread_t HostNativeThreadBase::Release ( )

Definition at line 45 of file HostNativeThreadBase.cpp.

References LLDB_INVALID_HOST_THREAD, m_result, and m_thread.

◆ Reset()

void HostNativeThreadBase::Reset ( )
virtual

◆ ThreadCreateTrampoline()

lldb::thread_result_t HostNativeThreadBase::ThreadCreateTrampoline ( lldb::thread_arg_t  arg)
staticprotected

Friends And Related Function Documentation

◆ ThreadLauncher

friend class ThreadLauncher
friend

Definition at line 25 of file HostNativeThreadBase.h.

Member Data Documentation

◆ m_result

lldb::thread_result_t lldb_private::HostNativeThreadBase::m_result = 0
protected

Definition at line 49 of file HostNativeThreadBase.h.

Referenced by GetResult(), Release(), and Reset().

◆ m_thread

lldb::thread_t lldb_private::HostNativeThreadBase::m_thread = LLDB_INVALID_HOST_THREAD
protected

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