blob: 08916607cda9a441914e265b93bce07e0691f313 (
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
|
// $Id$
#include "ace/OS_NS_unistd.h"
#include "TestImpl.h"
TestImpl::TestImpl (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}
// virtual
void TestImpl::myMethod (void)
{
ACE_DEBUG ((LM_ERROR, "(%P): TestImpl::myMethod called!.\n") );
}
// virtual
void TestImpl::shutdown (void)
{
// Give the client thread time to return from the collocated
// call to this method before shutting down the ORB. We sleep
// to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
ACE_OS::sleep (1);
this->orb_->shutdown ();
}
|