Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / THYBRID_Concurrency.h
blobff7a2b0d67686e5d26953b4d4e421f20d7152fe2
1 /* -*- c++ -*- */
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
11 public:
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>
21 ::instance ();
24 private:
25 ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> getting_;
26 int min_number_of_threads_;
27 int max_number_of_threads_;
28 int shutdown_task_;
29 int error_;
32 #endif /* JAWS_THYBRID_CONCURRENCY_H */