Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Thread_ID Class Reference

Defines a platform-independent thread ID. More...

#include <OS.h>

List of all members.

Public Methods

 ACE_Thread_ID (ACE_thread_t, ACE_hthread_t)
 ACE_Thread_ID (const ACE_Thread_ID &id)
ACE_thread_t id (void)
void id (ACE_thread_t)
ACE_hthread_t handle (void)
void handle (ACE_hthread_t)
int operator== (const ACE_Thread_ID &) const
int operator!= (const ACE_Thread_ID &) const

Private Attributes

ACE_thread_t thread_id_
 Identify the thread. More...

ACE_hthread_t thread_handle_
 Handle to the thread (typically used to "wait" on Win32). More...


Detailed Description

Defines a platform-independent thread ID.

Definition at line 4148 of file OS.h.


Constructor & Destructor Documentation

ACE_Thread_ID::ACE_Thread_ID ACE_thread_t   ,
ACE_hthread_t   
 

Definition at line 4756 of file OS.cpp.

References ACE_hthread_t, and ACE_thread_t.

04758   : thread_id_ (thread_id),
04759     thread_handle_ (thread_handle)
04760 {
04761 }

ACE_Thread_ID::ACE_Thread_ID const ACE_Thread_ID &    id
 

Definition at line 4763 of file OS.cpp.

04764   : thread_id_ (id.thread_id_),
04765     thread_handle_ (id.thread_handle_)
04766 {
04767 }


Member Function Documentation

void ACE_Thread_ID::handle ACE_hthread_t   
 

Definition at line 4788 of file OS.cpp.

References ACE_hthread_t, and thread_handle_.

04789 {
04790   this->thread_handle_ = thread_handle;
04791 }

ACE_hthread_t ACE_Thread_ID::handle void   
 

Definition at line 4782 of file OS.cpp.

References thread_handle_.

04783 {
04784   return this->thread_handle_;
04785 }

void ACE_Thread_ID::id ACE_thread_t   
 

Definition at line 4776 of file OS.cpp.

References ACE_thread_t, and thread_id_.

04777 {
04778   this->thread_id_ = thread_id;
04779 }

ACE_thread_t ACE_Thread_ID::id void   
 

Definition at line 4770 of file OS.cpp.

References thread_id_.

04771 {
04772   return this->thread_id_;
04773 }

int ACE_Thread_ID::operator!= const ACE_Thread_ID &    const
 

Definition at line 4801 of file OS.cpp.

04802 {
04803   return !(*this == rhs);
04804 }

int ACE_Thread_ID::operator== const ACE_Thread_ID &    const
 

Definition at line 4794 of file OS.cpp.

References ACE_OS::thr_cmp, ACE_OS::thr_equal, thread_handle_, and thread_id_.

04795 {
04796   return ACE_OS::thr_cmp (this->thread_handle_, rhs.thread_handle_) == 0
04797     && ACE_OS::thr_equal (this->thread_id_, rhs.thread_id_) == 0;
04798 }


Member Data Documentation

ACE_hthread_t ACE_Thread_ID::thread_handle_ [private]
 

Handle to the thread (typically used to "wait" on Win32).

Definition at line 4172 of file OS.h.

Referenced by handle, and operator==.

ACE_thread_t ACE_Thread_ID::thread_id_ [private]
 

Identify the thread.

Definition at line 4169 of file OS.h.

Referenced by id, and operator==.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:57:36 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002