summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3853_Regression/Hello_i.cpp
blob: 4e768a2cb8e09cabfd3ea22a8559052cfb6c1e5f (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
// $Id$

#include "Hello_i.h"
#include "ace/OS_NS_unistd.h"

// Implementation skeleton constructor
Demo_HelloWorld_i::Demo_HelloWorld_i (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}

// Implementation skeleton destructor
Demo_HelloWorld_i::~Demo_HelloWorld_i (void)
{
}

void Demo_HelloWorld_i::sayHello (const char * msg)
{
  ACE_OS::sleep(1);
  // Add your implementation here
  ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%P|%t)Demo_HelloWorld_i::sayHello %C\n"), msg));
}

void
Demo_HelloWorld_i::shutdown()
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t)Demo_HelloWorld_i::shutdown \n"));
  this->orb_->shutdown (0);
}