blob: 544f7cf94e1c889e83c362b6965d01a12c39c31c (
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
|
#include "Echo_Caller.h"
#include "Server_Task.h"
Echo_Caller::Echo_Caller(CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate(orb))
{
}
void
Echo_Caller::start_task(Test::Echo_ptr client)
{
Server_Task task (client);
if (task.activate (THR_NEW_LWP | THR_JOINABLE,
4,
1) == -1)
{
ACE_ERROR ((LM_ERROR,
"Error activating client task\n"));
}
ACE_Thread_Manager::instance ()->wait ();
}
void
Echo_Caller::shutdown()
{
ACE_DEBUG ((LM_DEBUG, "Server received shutdown message\n"));
orb_->shutdown(0);
}
|