diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-16 22:24:10 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-16 22:24:10 +0000 |
commit | 8a67a70b3bc223103517bf770d9250d53ddf38b7 (patch) | |
tree | 0fc5c87a05185445535f065b5f521f3d89f30147 /examples/Threads/TSS_Data.h | |
parent | 8ae812fecccf0e9cd2f54d5c74682a92fab346b8 (diff) | |
download | ATCD-8a67a70b3bc223103517bf770d9250d53ddf38b7.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/Threads/TSS_Data.h')
-rw-r--r-- | examples/Threads/TSS_Data.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/Threads/TSS_Data.h b/examples/Threads/TSS_Data.h new file mode 100644 index 00000000000..ff494c01b3a --- /dev/null +++ b/examples/Threads/TSS_Data.h @@ -0,0 +1,34 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// examples +// +// = FILENAME +// TSS_Data.cpp +// +// = AUTHOR +// Prashant Jain and Doug Schmidt +// +// ============================================================================ + +#include "ace/Singleton.h" + +class TSS_Data + // = TITLE + // Data that is stored in thread-specific storage. +{ +public: + void *data (void) { return this->data_; } + void data (void *v) { this->data_ = v; } + +private: + // = data_ will be thread-specific data so it doesn't need a lock. + void *data_; +}; + +typedef ACE_TSS_Singleton<TSS_Data> TSS_DATA; + + + |