summaryrefslogtreecommitdiff
path: root/trunk/ACE/apps/JAWS3/jaws3/TPOOL_Concurrency.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/apps/JAWS3/jaws3/TPOOL_Concurrency.h')
-rw-r--r--trunk/ACE/apps/JAWS3/jaws3/TPOOL_Concurrency.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/trunk/ACE/apps/JAWS3/jaws3/TPOOL_Concurrency.h b/trunk/ACE/apps/JAWS3/jaws3/TPOOL_Concurrency.h
new file mode 100644
index 00000000000..b9617b2fde3
--- /dev/null
+++ b/trunk/ACE/apps/JAWS3/jaws3/TPOOL_Concurrency.h
@@ -0,0 +1,32 @@
+/* -*- c++ -*- */
+// $Id$
+
+#ifndef JAWS_TPOOL_CONCURRENCY_H
+#define JAWS_TPOOL_CONCURRENCY_H
+
+#include "jaws3/Concurrency.h"
+
+class JAWS_Export JAWS_TPOOL_Concurrency : public JAWS_Concurrency_Impl
+{
+public:
+
+ JAWS_TPOOL_Concurrency (void);
+
+ int putq (JAWS_Protocol_Handler *ph);
+
+ int getq (JAWS_Protocol_Handler *&ph);
+
+ static JAWS_TPOOL_Concurrency * instance (void)
+ {
+ return ACE_Singleton<JAWS_TPOOL_Concurrency, ACE_SYNCH_MUTEX>::instance ();
+ }
+
+private:
+
+ int number_of_threads_;
+ int shutdown_task_;
+ int error_;
+
+};
+
+#endif /* JAWS_TPOOL_CONCURRENCY_H */