Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / Concurrency_T.h
blob2313c7374399df8e03879d6979728be39ce2a46b
1 /* -*- c++ -*- */
2 #ifndef JAWS_CONCURRENCY_T_H
3 #define JAWS_CONCURRENCY_T_H
5 #include "ace/config-lite.h"
7 class JAWS_Protocol_Handler;
9 template <class CONCURRENCY_IMPL>
10 class JAWS_Concurrency_Bridge
11 // = TITLE
12 // The Concurrency Bridge uses the Concrete Bridge pattern.
14 // = DESCRIPTION
15 // The Concurrency Bridge class plays the role of Abstraction
16 // in the Bridge pattern. If the CONCURRENCY_IMPL is the
17 // base class JAWS_Concurrency_Impl, then it plays the classic
18 // role. If the CONCURRENCY_IMPL is one of the Concrete
19 // Implementors, then its role is more that of an Adapter,
20 // which is like Bridge, but without the polymorphism overhead.
23 public:
24 JAWS_Concurrency_Bridge (CONCURRENCY_IMPL *impl = 0);
26 int putq (JAWS_Protocol_Handler *ph);
27 int getq (JAWS_Protocol_Handler *&ph);
29 void shutdown ();
31 protected:
32 CONCURRENCY_IMPL *impl_;
35 #include "jaws3/Concurrency_T.cpp"
37 #endif /* JAWS_CONCURRENCY_T_H */