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
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 ();
24 ACE_Atomic_Op
<ACE_SYNCH_MUTEX
, int> getting_
;
25 int min_number_of_threads_
;
30 #endif /* JAWS_TPR_CONCURRENCY_H */