Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / TPR_Concurrency.h
blobea83640c795cafd0ee25b610748a0b929fc62c5c
1 /* -*- c++ -*- */
2 #ifndef JAWS_TPR_CONCURRENCY_H
3 #define JAWS_TPR_CONCURRENCY_H
5 #include "ace/Atomic_Op.h"
7 #include "jaws3/Concurrency.h"
9 class JAWS_Export JAWS_TPR_Concurrency : public JAWS_Concurrency_Impl
11 public:
12 JAWS_TPR_Concurrency ();
14 int putq (JAWS_Protocol_Handler *ph);
16 int getq (JAWS_Protocol_Handler *&ph);
18 static JAWS_TPR_Concurrency * instance ()
20 return ACE_Singleton<JAWS_TPR_Concurrency, ACE_SYNCH_MUTEX>::instance ();
23 private:
24 ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> getting_;
25 int min_number_of_threads_;
26 int shutdown_task_;
27 int error_;
30 #endif /* JAWS_TPR_CONCURRENCY_H */