#include <OS_NS_Thread.h>
Public Member Functions | |
ACE_Thread_ID (ACE_thread_t thr_id, ACE_hthread_t thr_handle) | |
ACE_Thread_ID (void) | |
Initialize the object using calls to ACE_OS::thr_self(). | |
ACE_Thread_ID (const ACE_Thread_ID &rhs) | |
Copy constructor. | |
ACE_thread_t | id (void) const |
Get the thread id. | |
void | id (ACE_thread_t) |
Set the thread id. | |
ACE_hthread_t | handle (void) const |
Get the thread handle. | |
void | handle (ACE_hthread_t) |
Set the thread handle. | |
void | to_string (char *thr_string) const |
bool | operator== (const ACE_Thread_ID &) const |
Equality operator. | |
bool | operator!= (const ACE_Thread_ID &) const |
Inequality operator. | |
Private Attributes | |
ACE_thread_t | thread_id_ |
Identify the thread. | |
ACE_hthread_t | thread_handle_ |
Handle to the thread (typically used to "wait" on Win32). |
Definition at line 671 of file OS_NS_Thread.h.
ACE_INLINE ACE_Thread_ID::ACE_Thread_ID | ( | ACE_thread_t | thr_id, | |
ACE_hthread_t | thr_handle | |||
) |
Initialize the object using the thread id and thread handle passed as parameters.
Definition at line 3576 of file OS_NS_Thread.inl.
03578 : thread_id_ (thread_id), 03579 thread_handle_ (thread_handle) 03580 { 03581 }
ACE_INLINE ACE_Thread_ID::ACE_Thread_ID | ( | void | ) |
Initialize the object using calls to ACE_OS::thr_self().
Definition at line 3591 of file OS_NS_Thread.inl.
References ACE_OS::thr_self(), and thread_handle_.
03592 : thread_id_ (ACE_OS::thr_self ()) 03593 { 03594 ACE_OS::thr_self (thread_handle_); 03595 }
ACE_INLINE ACE_Thread_ID::ACE_Thread_ID | ( | const ACE_Thread_ID & | rhs | ) |
Copy constructor.
Definition at line 3584 of file OS_NS_Thread.inl.
03585 : thread_id_ (id.thread_id_), 03586 thread_handle_ (id.thread_handle_) 03587 { 03588 }
ACE_INLINE void ACE_Thread_ID::handle | ( | ACE_hthread_t | ) |
Set the thread handle.
Definition at line 3617 of file OS_NS_Thread.inl.
References thread_handle_.
03618 { 03619 this->thread_handle_ = thread_handle; 03620 }
ACE_INLINE ACE_hthread_t ACE_Thread_ID::handle | ( | void | ) | const |
Get the thread handle.
Definition at line 3611 of file OS_NS_Thread.inl.
References thread_handle_.
03612 { 03613 return this->thread_handle_; 03614 }
ACE_INLINE void ACE_Thread_ID::id | ( | ACE_thread_t | ) |
Set the thread id.
Definition at line 3605 of file OS_NS_Thread.inl.
References thread_id_.
03606 { 03607 this->thread_id_ = thread_id; 03608 }
ACE_INLINE ACE_thread_t ACE_Thread_ID::id | ( | void | ) | const |
Get the thread id.
Definition at line 3599 of file OS_NS_Thread.inl.
References thread_id_.
03600 { 03601 return this->thread_id_; 03602 }
ACE_INLINE bool ACE_Thread_ID::operator!= | ( | const ACE_Thread_ID & | ) | const |
ACE_INLINE bool ACE_Thread_ID::operator== | ( | const ACE_Thread_ID & | ) | const |
Equality operator.
Definition at line 3623 of file OS_NS_Thread.inl.
References ACE_OS::thr_cmp(), ACE_OS::thr_equal(), thread_handle_, and thread_id_.
03624 { 03625 return 03626 ACE_OS::thr_cmp (this->thread_handle_, rhs.thread_handle_) 03627 && ACE_OS::thr_equal (this->thread_id_, rhs.thread_id_); 03628 }
void ACE_Thread_ID::to_string | ( | char * | thr_string | ) | const |
Referenced by ACE_Utils::UUID_Generator::generate_UUID().
ACE_hthread_t ACE_Thread_ID::thread_handle_ [private] |
Handle to the thread (typically used to "wait" on Win32).
Definition at line 711 of file OS_NS_Thread.h.
Referenced by ACE_Thread_ID(), handle(), and operator==().
ACE_thread_t ACE_Thread_ID::thread_id_ [private] |
Identify the thread.
Definition at line 708 of file OS_NS_Thread.h.
Referenced by id(), and operator==().