File: Concurrency_T.h

package info (click to toggle)
ace 6.0.3%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 49,368 kB
  • sloc: cpp: 341,826; perl: 30,850; ansic: 20,952; makefile: 10,144; sh: 4,744; python: 828; exp: 787; yacc: 511; xml: 330; lex: 158; lisp: 116; csh: 48; tcl: 5
file content (49 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- c++ -*- */
// $Id: Concurrency_T.h 91730 2010-09-13 09:31:11Z johnnyw $

#ifndef JAWS_CONCURRENCY_T_H
#define JAWS_CONCURRENCY_T_H

#include "ace/config-lite.h"

class JAWS_Protocol_Handler;

template <class CONCURRENCY_IMPL>
class JAWS_Concurrency_Bridge
// = TITLE
//     The Concurrency Bridge uses the Concrete Bridge pattern.
//
// = DESCRIPTION
//     The Concurrency Bridge class plays the role of Abstraction
//     in the Bridge pattern.  If the CONCURRENCY_IMPL is the
//     base class JAWS_Concurrency_Impl, then it plays the classic
//     role.  If the CONCURRENCY_IMPL is one of the Concrete
//     Implementors, then its role is more that of an Adapter,
//     which is like Bridge, but without the polymorphism overhead.
//
{
public:

  JAWS_Concurrency_Bridge (CONCURRENCY_IMPL *impl = 0);

  int putq (JAWS_Protocol_Handler *ph);
  int getq (JAWS_Protocol_Handler *&ph);

  void shutdown (void);

protected:

  CONCURRENCY_IMPL *impl_;

};

#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "jaws3/Concurrency_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */

#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Concurrency_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */


#endif /* JAWS_CONCURRENCY_T_H */