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

« back to all changes in this revision

Viewing changes to TAO/tests/Two_Objects/First_i.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
 
//
2
 
// First_i.cpp,v 1.3 2002/01/29 20:21:11 okellogg Exp
3
 
//
4
 
 
5
 
#include "First_i.h"
6
 
#include "tao/ORB_Core.h"
7
 
#include "tao/debug.h"
8
 
#include "tao/Transport_Cache_Manager.h"
9
 
#include "ace/Synch.h"
10
 
 
11
 
ACE_RCSID(Test, Test, "First_i.cpp,v 1.3 2002/01/29 20:21:11 okellogg Exp")
12
 
 
13
 
First_i::First_i (CORBA::ORB_ptr orb, ACE_Auto_Event &two_way_done)
14
 
  : orb_ (CORBA::ORB::_duplicate (orb)),
15
 
    two_way_done_(two_way_done)
16
 
{
17
 
}
18
 
 
19
 
void
20
 
First_i::oneway_method (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
21
 
      ACE_THROW_SPEC ((CORBA::SystemException))
22
 
{
23
 
  ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) one way method called. About to wait for two way call completion\n"));
24
 
 
25
 
  two_way_done_.wait ();
26
 
 
27
 
  ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) woke up after wait\n"));
28
 
}