summaryrefslogtreecommitdiff
path: root/ACE/examples/Threads/TSS_Task.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Threads/TSS_Task.h')
-rw-r--r--ACE/examples/Threads/TSS_Task.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/examples/Threads/TSS_Task.h b/ACE/examples/Threads/TSS_Task.h
new file mode 100644
index 00000000000..289ef6db82f
--- /dev/null
+++ b/ACE/examples/Threads/TSS_Task.h
@@ -0,0 +1,40 @@
+/* -*- C++ -*- */
+
+
+//=============================================================================
+/**
+ * @file TSS_Task.h
+ *
+ * $Id$
+ *
+ * @author Prashant Jain and Doug Schmidt
+ */
+//=============================================================================
+
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Token.h"
+#include "ace/Atomic_Op.h"
+
+class Test_Task
+{
+public:
+
+ Test_Task (void);
+ ~Test_Task (void);
+
+ int open (void *arg);
+
+ static void *svc (void *arg);
+
+ static ACE_Atomic_Op<ACE_Token, int> wait_count_;
+ static ACE_Atomic_Op<ACE_Token, int> max_count_;
+
+private:
+ static ACE_Atomic_Op<ACE_Token, int> count_;
+};