summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3672_Regression/ami_test_i.cpp
blob: 9b77796e8632659b9916f5439bad82a47bbc6ce1 (plain)
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

//=============================================================================
/**
 *  @file    ami_test_i.cpp
 *
 *  $Id$
 *
 *  Implementation of the AMI Test interface.
 *
 *
 *  @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
 *  @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
 */
//=============================================================================


#include "ami_test_i.h"
#include "tao/debug.h"
#include "ace/OS_NS_unistd.h"

AMI_Test_i::AMI_Test_i (CORBA::ORB_ptr orb)
  :  orb_ (CORBA::ORB::_duplicate (orb))
{
}

CORBA::Long
AMI_Test_i::foo (CORBA::Long_out out_l)
{
  out_l = 931233;

  ACE_OS::sleep (10);

  return 931234;
}

void
AMI_Test_i::shutdown (void)
{
  ACE_OS::sleep (5);

  this->orb_->shutdown (0);
}