ACE_TSS_Cleanup Class Reference
Singleton that helps to manage the lifetime of TSS objects and keys.
More...
List of all members.
Detailed Description
Singleton that helps to manage the lifetime of TSS objects and keys.
Member Typedef Documentation
Constructor & Destructor Documentation
ACE_TSS_Cleanup::ACE_TSS_Cleanup |
( |
void |
|
) |
[private] |
ACE_TSS_Cleanup::~ACE_TSS_Cleanup |
( |
void |
|
) |
[private] |
Member Function Documentation
void ACE_TSS_Cleanup::dump |
( |
void |
|
) |
[private] |
bool ACE_TSS_Cleanup::find_tss_keys |
( |
ACE_TSS_Keys *& |
thread_keys |
) |
const [private] |
Find the TSS keys (if any) for this thread.
- Parameters:
-
| thread_keys | reference to pointer to be filled in by this function. |
- Returns:
- false if keys don't exist.
This key is no longer used Release key if use count == 0 fail if use_count != 0;
- Parameters:
-
| key | the key to be released |
int ACE_TSS_Cleanup::insert |
( |
ACE_thread_key_t |
key, |
|
|
void(*)(void *) |
destructor | |
|
) |
| | |
Register a newly-allocated key
- Parameters:
-
| key | the key to be monitored |
| destructor | the function to call to delete objects stored via this key |
int ACE_TSS_Cleanup::remove_key |
( |
ACE_TSS_Info & |
info |
) |
[private] |
remove key if it's unused (thread_count == 0)
- Parameters:
-
| info | reference to the info for this key |
This thread is no longer using this key call destructor if appropriate
void ACE_TSS_Cleanup::thread_exit |
( |
void |
|
) |
|
Cleanup the thread-specific objects. Does _NOT_ exit the thread. For each used key perform the same actions as free_key.
Release a key used by this thread
- Parameters:
-
| info | reference to the info for this key |
| destructor | out arg to receive destructor function ptr |
| tss_obj | out arg to receive pointer to deletable object |
Mark a key as being used by this thread.
Accessor for this threads ACE_TSS_Keys instance. Creates the keys if necessary.
Friends And Related Function Documentation
Member Data Documentation
Table of <ACE_TSS_Info>'s.
The documentation for this class was generated from the following file: