Basic information for thread descriptors. These information gets extracted out because we need it after a thread is terminated. More...
#include <Thread_Manager.h>
Basic information for thread descriptors. These information gets extracted out because we need it after a thread is terminated.
For internal use only.
Definition at line 165 of file Thread_Manager.h.
ACE_Thread_Descriptor_Base::ACE_Thread_Descriptor_Base | ( | void | ) |
Definition at line 62 of file Thread_Manager.inl.
: ACE_OS_Thread_Descriptor (), thr_id_ (ACE_OS::NULL_thread), thr_handle_ (ACE_OS::NULL_hthread), grp_id_ (0), thr_state_ (ACE_Thread_Manager::ACE_THR_IDLE), task_ (0), next_ (0), prev_ (0) { }
ACE_Thread_Descriptor_Base::~ACE_Thread_Descriptor_Base | ( | void | ) |
Definition at line 75 of file Thread_Manager.inl.
{ }
int ACE_Thread_Descriptor_Base::grp_id | ( | void | ) | const |
Group ID.
Definition at line 104 of file Thread_Manager.inl.
bool ACE_Thread_Descriptor_Base::operator!= | ( | const ACE_Thread_Descriptor_Base & | rhs | ) | const |
bool ACE_Thread_Descriptor_Base::operator== | ( | const ACE_Thread_Descriptor_Base & | rhs | ) | const |
Equality operator.
Definition at line 80 of file Thread_Manager.inl.
{ return ACE_OS::thr_cmp (this->thr_handle_, rhs.thr_handle_) && ACE_OS::thr_equal (this->thr_id_, rhs.thr_id_); }
void ACE_Thread_Descriptor_Base::reset | ( | void | ) | [protected] |
Reset this base thread descriptor.
Definition at line 120 of file Thread_Manager.inl.
{ ACE_TRACE ("ACE_Thread_Descriptor_Base::reset"); this->thr_id_ = ACE_OS::NULL_thread; this->thr_handle_ = ACE_OS::NULL_hthread; this->grp_id_ = 0; this->thr_state_ = ACE_Thread_Manager::ACE_THR_IDLE; this->task_ = 0; this->flags_ = 0; }
ACE_UINT32 ACE_Thread_Descriptor_Base::state | ( | void | ) | const |
Current state of the thread.
Definition at line 112 of file Thread_Manager.inl.
{ ACE_TRACE ("ACE_Thread_Descriptor_Base::state"); return thr_state_; }
ACE_Task_Base * ACE_Thread_Descriptor_Base::task | ( | void | ) | const |
Return the pointer to an ACE_Task_Base or NULL if there's no ACE_Task_Base associated with this thread.;
Definition at line 95 of file Thread_Manager.inl.
friend class ACE_Double_Linked_List< ACE_Thread_Descriptor > [friend] |
Reimplemented in ACE_Thread_Descriptor.
Definition at line 172 of file Thread_Manager.h.
friend class ACE_Double_Linked_List< ACE_Thread_Descriptor_Base > [friend] |
Definition at line 169 of file Thread_Manager.h.
friend class ACE_Double_Linked_List_Iterator< ACE_Thread_Descriptor > [friend] |
Reimplemented in ACE_Thread_Descriptor.
Definition at line 174 of file Thread_Manager.h.
friend class ACE_Double_Linked_List_Iterator< ACE_Thread_Descriptor_Base > [friend] |
Definition at line 171 of file Thread_Manager.h.
friend class ACE_Double_Linked_List_Iterator_Base< ACE_Thread_Descriptor > [friend] |
Definition at line 173 of file Thread_Manager.h.
friend class ACE_Double_Linked_List_Iterator_Base< ACE_Thread_Descriptor_Base > [friend] |
Definition at line 170 of file Thread_Manager.h.
friend class ACE_Thread_Manager [friend] |
Reimplemented in ACE_Thread_Descriptor.
Definition at line 168 of file Thread_Manager.h.
int ACE_Thread_Descriptor_Base::grp_id_ [protected] |
Group ID.
Definition at line 208 of file Thread_Manager.h.
We need these pointers to maintain the double-linked list in a thread managers.
Definition at line 219 of file Thread_Manager.h.
Definition at line 220 of file Thread_Manager.h.
ACE_Task_Base* ACE_Thread_Descriptor_Base::task_ [protected] |
Pointer to an ACE_Task_Base or NULL if there's no ACE_Task_Base.
Definition at line 215 of file Thread_Manager.h.
ACE_hthread_t ACE_Thread_Descriptor_Base::thr_handle_ [protected] |
Unique handle to thread (used by Win32 and AIX).
Definition at line 205 of file Thread_Manager.h.
ACE_thread_t ACE_Thread_Descriptor_Base::thr_id_ [protected] |
Unique thread ID.
Definition at line 202 of file Thread_Manager.h.
ACE_UINT32 ACE_Thread_Descriptor_Base::thr_state_ [protected] |
Current state of the thread.
Definition at line 211 of file Thread_Manager.h.