#include <OS.h>
Public Methods | |
| ACE_TSS_Keys (void) | |
| Default constructor, to initialize all bits to zero (unused). More... | |
| int | test_and_set (const ACE_thread_key_t key) |
| Mark the specified key as being in use, if it was not already so marked. Returns 1 if the had already been marked, 0 if not. More... | |
| int | test_and_clear (const ACE_thread_key_t key) |
| Mark the specified key as not being in use, if it was not already so cleared. Returns 1 if the key had already been cleared, 0 if not. More... | |
| int | is_set (const ACE_thread_key_t key) const |
| Return whether the specific key is marked as in use. Returns 1 if the key is been marked, 0 if not. More... | |
Private Types | |
| enum | { ACE_WORDS = (ACE_DEFAULT_THREAD_KEYS - 1) / ACE_BITS_PER_WORD + 1 } |
Static Private Methods | |
| void | find (const u_int key, u_int &word, u_int &bit) |
| For a given key, find the word and bit number that represent it. More... | |
Private Attributes | |
| u_long | key_bit_words_ [ACE_WORDS] |
| Bit flag collection. A bit value of 1 indicates that the key is in use by this thread. More... | |
Wrapper around array of whether each key is in use. A simple typedef doesn't work with Sun C++ 4.2.
|
|
|
|
|
Default constructor, to initialize all bits to zero (unused).
|
|
||||||||||||||||
|
For a given key, find the word and bit number that represent it.
|
|
|
Return whether the specific key is marked as in use. Returns 1 if the key is been marked, 0 if not.
|
|
|
Mark the specified key as not being in use, if it was not already so cleared. Returns 1 if the key had already been cleared, 0 if not.
|
|
|
Mark the specified key as being in use, if it was not already so marked. Returns 1 if the had already been marked, 0 if not.
|
|
|
Bit flag collection. A bit value of 1 indicates that the key is in use by this thread.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001