summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2683_Regression/test_i.cpp
blob: c5fad9a50c54960619992610aa29e64ea7fdde4b (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
//
// $Id$
//
#include "test_i.h"
#include "ace/OS_NS_unistd.h"

test_i::test_i (ORB_Killer *k)
  : killer_ (k)
{
}

void
test_i::ping (void)
{

}

void
test_i::shutdown (void)
{
  ACE_DEBUG ((LM_DEBUG,"(%P|%t) requesting shutdown\n"));
  this->killer_->activate ();
}


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

int
ORB_Killer::svc ()
{
  ACE_OS::sleep (1);
  ACE_DEBUG ((LM_DEBUG,"(%P|%t) doing shutdown\n"));
  orb_->shutdown(1);
  ACE_DEBUG ((LM_DEBUG,"(%P|%t) shutdown complete\n"));
  return 0;
}