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
12 // The Concurrency Bridge uses the Concrete Bridge pattern.
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.
24 JAWS_Concurrency_Bridge (CONCURRENCY_IMPL
*impl
= 0);
26 int putq (JAWS_Protocol_Handler
*ph
);
27 int getq (JAWS_Protocol_Handler
*&ph
);
32 CONCURRENCY_IMPL
*impl_
;
35 #include "jaws3/Concurrency_T.cpp"
37 #endif /* JAWS_CONCURRENCY_T_H */