1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
.TH ACE_TSS_Keys 3 "1 Dec 2001" "ACE" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ACE_TSS_Keys \- Collection of in-use flags for a thread's TSS keys. For internal use only by ACE_TSS_Cleanup; it is public because some compilers can't use nested classes for template instantiation parameters.
.SH SYNOPSIS
.br
.PP
\fC#include <OS.h>\fR
.PP
.SS Public Methods
.in +1c
.ti -1c
.RI "\fBACE_TSS_Keys\fR (void)"
.br
.RI "\fIDefault constructor, to initialize all bits to zero (unused).\fR"
.ti -1c
.RI "int \fBtest_and_set\fR (const \fBACE_thread_key_t\fR key)"
.br
.RI "\fIMark 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.\fR"
.ti -1c
.RI "int \fBtest_and_clear\fR (const \fBACE_thread_key_t\fR key)"
.br
.RI "\fIMark the specified key as not being in use, if it was not already so cleared. Returns 1 if the had already been cleared, 0 if not.\fR"
.in -1c
.SS Private Types
.in +1c
.ti -1c
.RI "enum { \fBACE_WORDS\fR = (ACE_DEFAULT_THREAD_KEYS - 1) / ACE_BITS_PER_WORD + 1 }"
.br
.in -1c
.SS Private Attributes
.in +1c
.ti -1c
.RI "u_long \fBkey_bit_words_\fR [ACE_WORDS]"
.br
.RI "\fIBit flag collection. A bit value of 1 indicates that the key is in use by this thread.\fR"
.in -1c
.SS Static Private Methods
.in +1c
.ti -1c
.RI "void \fBfind\fR (const u_int key, u_int &word, u_int &bit)"
.br
.RI "\fIFor a given key, find the word and bit number that represent it.\fR"
.in -1c
.SH DETAILED DESCRIPTION
.PP
Collection of in-use flags for a thread's TSS keys. For internal use only by ACE_TSS_Cleanup; it is public because some compilers can't use nested classes for template instantiation parameters.
.PP
.PP
Wrapper around array of whether each key is in use. A simple typedef doesn't work with Sun C++ 4.2.
.PP
.SH MEMBER ENUMERATION DOCUMENTATION
.PP
.SS anonymous enum\fC [private]\fR
.PP
\fBEnumeration values:\fR
.in +1c
.TP
\fB\fIACE_WORDS\fR \fR
.SH CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
.PP
.SS ACE_TSS_Keys::ACE_TSS_Keys (void)
.PP
Default constructor, to initialize all bits to zero (unused).
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.PP
.SS void ACE_TSS_Keys::find (const u_int key, u_int & word, u_int & bit)\fC [static, private]\fR
.PP
For a given key, find the word and bit number that represent it.
.PP
.SS int ACE_TSS_Keys::test_and_clear (const \fBACE_thread_key_t\fR key)
.PP
Mark the specified key as not being in use, if it was not already so cleared. Returns 1 if the had already been cleared, 0 if not.
.PP
.SS int ACE_TSS_Keys::test_and_set (const \fBACE_thread_key_t\fR key)
.PP
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.
.PP
.SH MEMBER DATA DOCUMENTATION
.PP
.SS u_long ACE_TSS_Keys::key_bit_words_[ACE_WORDS]\fC [private]\fR
.PP
Bit flag collection. A bit value of 1 indicates that the key is in use by this thread.
.PP
.SH AUTHOR
.PP
Generated automatically by Doxygen for ACE from the source code.
|