summaryrefslogtreecommitdiff
path: root/ACE/examples/Threads/TSS_Obj.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
commitc44379cc7d9c7aa113989237ab0f56db12aa5219 (patch)
tree66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/Threads/TSS_Obj.h
parent3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff)
downloadATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz
Repo restructuring
Diffstat (limited to 'ACE/examples/Threads/TSS_Obj.h')
-rw-r--r--ACE/examples/Threads/TSS_Obj.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/ACE/examples/Threads/TSS_Obj.h b/ACE/examples/Threads/TSS_Obj.h
new file mode 100644
index 00000000000..7dc4e469851
--- /dev/null
+++ b/ACE/examples/Threads/TSS_Obj.h
@@ -0,0 +1,39 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// tests
+//
+// = FILENAME
+// TSS_Test.cpp
+//
+// = DESCRIPTION
+// This program tests various features of ACE_Thread and the
+// thread-specific storage variant of <ACE_SingletonEx>.
+//
+// = AUTHOR
+// Prashant Jain and Doug Schmidt
+//
+// ============================================================================
+
+#include "ace/Atomic_Op.h"
+#include "ace/Synch_Traits.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TSS_Obj
+ // = TITLE
+ // This object is stored in thread-specific storage.
+{
+public:
+ TSS_Obj (void);
+ ~TSS_Obj (void);
+
+private:
+
+ static ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> count_;
+};
+