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

ACE_TSS_Ref Class Reference

"Reference count" for thread-specific storage keys. More...

#include <OS.h>

List of all members.

Public Methods

 ACE_TSS_Ref (ACE_thread_t id)
 Constructor. More...

 ACE_TSS_Ref (void)
 Default constructor. More...

int operator== (const ACE_TSS_Ref &) const
 Check for equality. More...

int operator!= (const ACE_TSS_Ref &) const
 Check for inequality. More...


Public Attributes

ACE_thread_t tid_
 ID of thread using a specific key. More...


Detailed Description

"Reference count" for thread-specific storage keys.

Since the <ACE_Unbounded_Stack> doesn't allow duplicates, the "reference count" is the identify of the thread_id.

Definition at line 6522 of file OS.h.


Constructor & Destructor Documentation

ACE_TSS_Ref::ACE_TSS_Ref ACE_thread_t    id
 

Constructor.

Definition at line 1613 of file OS.cpp.

References ACE_OS_TRACE, and ACE_thread_t.

01614   : tid_(id)
01615 {
01616   ACE_OS_TRACE ("ACE_TSS_Ref::ACE_TSS_Ref");
01617 }

ACE_TSS_Ref::ACE_TSS_Ref void   
 

Default constructor.

Definition at line 1619 of file OS.cpp.

References ACE_OS_TRACE.

01620 {
01621   ACE_OS_TRACE ("ACE_TSS_Ref::ACE_TSS_Ref");
01622 }


Member Function Documentation

ACE_SPECIAL_INLINE int ACE_TSS_Ref::operator!= const ACE_TSS_Ref &    const
 

Check for inequality.

Definition at line 1636 of file OS.cpp.

References ACE_OS_TRACE.

01637 {
01638   ACE_OS_TRACE ("ACE_TSS_Ref::operator !=");
01639 
01640   return !(*this == tss_ref);
01641 }

int ACE_TSS_Ref::operator== const ACE_TSS_Ref &    const
 

Check for equality.

Definition at line 1626 of file OS.cpp.

References ACE_OS_TRACE, and tid_.

01627 {
01628   ACE_OS_TRACE ("ACE_TSS_Ref::operator==");
01629 
01630   return this->tid_ == info.tid_;
01631 }


Member Data Documentation

ACE_thread_t ACE_TSS_Ref::tid_
 

ID of thread using a specific key.

Definition at line 6540 of file OS.h.

Referenced by operator==.


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