#include <ace/OS.h>
class ACE_TSS_Info {
public:
ACE_TSS_Info (ACE_thread_key_t key, void (*dest)( void *) = 0, void *tss_inst = 0 );
ACE_TSS_Info (void);
inline int key_in_use (void) const;
inline void key_in_use (int flag);
int operator== (const ACE_TSS_Info &) const;
int operator!= (const ACE_TSS_Info &) const;
void dump (void);
private:
ACE_thread_key_t key_;
void (*destructor_)(void *);
void *tss_obj_;
int thread_count_;
friend class ACE_TSS_Cleanup;
};
ACE_TSS_Info (ACE_thread_key_t key, void (*dest)(
void *) = 0,
void *tss_inst = 0
);
ACE_TSS_Info (void);
inline int key_in_use (void) const;
inline void key_in_use (int flag);
int operator== (const ACE_TSS_Info &) const;
int operator!= (const ACE_TSS_Info &) const;
void dump (void);
ACE_thread_key_t key_;
void (*destructor_)(void *);
void *tss_obj_;
xxx
instance that has/will allocate the key.
int thread_count_;
friend class ACE_TSS_Cleanup;
schmidt@cs.wustl.edu
, Jesper S. M|ller
stophph@diku.dk
, and a cast of thousands...