Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / kill_server / Test_i.cpp
blobb8b27e8c9a68afd97d506fd629c317b508f32b30
1 /* -*- C++ -*- */
3 #include "Test_i.h"
4 #include "Terminator.h"
5 #include "ace/OS_NS_unistd.h"
7 Test_i::Test_i (CORBA::Short server_num,
8 Terminator &terminator,
9 PortableServer::POA_ptr pa,
10 PortableServer::POA_ptr pb)
11 : mgr_a (pa->the_POAManager ()),
12 mgr_b (pb->the_POAManager ()),
13 server_num_ (server_num),
14 terminator_ (terminator)
18 Test_i::~Test_i ()
20 ACE_Message_Block *mb = 0;
21 ACE_NEW (mb,
22 ACE_Message_Block(0,
23 ACE_Message_Block::MB_HANGUP));
24 terminator_.putq (mb);
25 terminator_.wait ();
28 CORBA::Short
29 Test_i::get_server_num ()
31 return this->server_num_;