ACE
6.3.3
|
Thread Specific Key management. More...
#include <OS_NS_Thread.h>
Public Types | |
typedef void(* | Destructor) (void *) |
Declare pointer to function to destroy tss object. More... | |
Public Member Functions | |
ACE_TSS_Info (ACE_thread_key_t key, Destructor dest=0) | |
Constructor. More... | |
ACE_TSS_Info (void) | |
Default constructor. More... | |
int | key_in_use (void) const |
Returns 1 if the key is in use, 0 if not. More... | |
void | key_in_use (int flag) |
bool | operator== (const ACE_TSS_Info &) const |
Check for equality. More... | |
bool | operator!= (const ACE_TSS_Info &) const |
Check for inequality. More... | |
void | dump (void) |
Dump the state. More... | |
Private Attributes | |
ACE_thread_key_t | key_ |
Key to the thread-specific storage item. More... | |
Destructor | destructor_ |
"Destructor" that gets called when the item is finally released. More... | |
int | thread_count_ |
Friends | |
class | ACE_TSS_Cleanup |
Thread Specific Key management.
This class maps a key to a "destructor."
typedef void(* ACE_TSS_Info::Destructor) (void *) |
Declare pointer to function to destroy tss object.
ACE_TSS_Info::ACE_TSS_Info | ( | ACE_thread_key_t | key, |
ACE_TSS_Info::Destructor | dest = 0 |
||
) |
Constructor.
ACE_TSS_Info::ACE_TSS_Info | ( | void | ) |
Default constructor.
void ACE_TSS_Info::dump | ( | void | ) |
Dump the state.
|
inline |
Returns 1 if the key is in use, 0 if not.
|
inline |
Mark the key as being in use if the flag is non-zero, or not in use if the flag is 0.
bool ACE_TSS_Info::operator!= | ( | const ACE_TSS_Info & | info | ) | const |
Check for inequality.
bool ACE_TSS_Info::operator== | ( | const ACE_TSS_Info & | info | ) | const |
Check for equality.
|
friend |
|
private |
"Destructor" that gets called when the item is finally released.
|
private |
Key to the thread-specific storage item.
|
private |
Count of threads that are using this key. Contains -1 when the key is not in use.