2 #ifndef JAWS_THYBRID_CONCURRENCY_H
3 #define JAWS_THYBRID_CONCURRENCY_H
5 #include "ace/Atomic_Op.h"
7 #include "jaws3/Concurrency.h"
9 class JAWS_Export JAWS_THYBRID_Concurrency
: public JAWS_Concurrency_Impl
12 JAWS_THYBRID_Concurrency ();
14 int putq (JAWS_Protocol_Handler
*ph
);
16 int getq (JAWS_Protocol_Handler
*&ph
);
18 static JAWS_THYBRID_Concurrency
* instance ()
20 return ACE_Singleton
<JAWS_THYBRID_Concurrency
, ACE_SYNCH_MUTEX
>
25 ACE_Atomic_Op
<ACE_SYNCH_MUTEX
, int> getting_
;
26 int min_number_of_threads_
;
27 int max_number_of_threads_
;
32 #endif /* JAWS_THYBRID_CONCURRENCY_H */