~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tao/Connector_Impl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef TAO_CONNECTOR_IMPL_CPP
2
 
#define TAO_CONNECTOR_IMPL_CPP
3
 
 
4
 
#include "tao/Connector_Impl.h"
5
 
 
6
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
7
 
# pragma once
8
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
9
 
 
10
 
 
11
 
#if !defined(__ACE_INLINE__)
12
 
#include "tao/Connector_Impl.inl"
13
 
#endif /* __ACE_INLINE__ */
14
 
 
15
 
ACE_RCSID(tao, Connector_Impl, "Connector_Impl.cpp,v 1.6 2003/07/07 23:58:31 irfan Exp")
16
 
 
17
 
 
18
 
template <class SVC_HANDLER>
19
 
TAO_Connect_Creation_Strategy<SVC_HANDLER>::
20
 
    TAO_Connect_Creation_Strategy (ACE_Thread_Manager* t,
21
 
                                   TAO_ORB_Core *orb_core,
22
 
                                   void *arg,
23
 
                                   CORBA::Boolean flag)
24
 
    : ACE_Creation_Strategy <SVC_HANDLER> (t),
25
 
      orb_core_ (orb_core),
26
 
      arg_ (arg),
27
 
      lite_flag_ (flag)
28
 
{
29
 
 
30
 
}
31
 
 
32
 
template <class SVC_HANDLER> int
33
 
TAO_Connect_Creation_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh)
34
 
{
35
 
  if (sh == 0)
36
 
    ACE_NEW_RETURN (sh,
37
 
                    SVC_HANDLER (this->orb_core_,
38
 
                                 this->lite_flag_,
39
 
                                 this->arg_),
40
 
                    -1);
41
 
 
42
 
  // We add to the #REFCOUNT# since the Connector needs this. See
43
 
  // Connector::make_connection() for details.
44
 
  sh->add_reference ();
45
 
 
46
 
   // At this point, the #REFCOUNT# is two.
47
 
 
48
 
  return 0;
49
 
}
50
 
 
51
 
 
52
 
////////////////////////////////////////////////////////////////
53
 
 
54
 
template <class SVC_HANDLER>
55
 
TAO_Connect_Concurrency_Strategy<SVC_HANDLER>::
56
 
     TAO_Connect_Concurrency_Strategy (TAO_ORB_Core *orb_core)
57
 
       : orb_core_ (orb_core)
58
 
{
59
 
}
60
 
 
61
 
template <class SVC_HANDLER> int
62
 
TAO_Connect_Concurrency_Strategy<SVC_HANDLER>::
63
 
    activate_svc_handler (SVC_HANDLER *sh,
64
 
                          void *arg)
65
 
{
66
 
  return ACE_Concurrency_Strategy<SVC_HANDLER>::activate_svc_handler (sh,
67
 
                                                                      arg);
68
 
}
69
 
 
70
 
 
71
 
#endif /*TAO_CONNECTOR_IMPL_CPP*/