blob: 341c89ead6eb7b51a0688440b22cd8e46d3f1cb5 (
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
|
//
// $Id$
//
#include "Startup_Callback.h"
ACE_RCSID(Client_Leaks, Startup_Callback, "$Id$")
Startup_Callback::Startup_Callback (void)
{
}
int
Startup_Callback::process_has_started (Test::Process_out the_process)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
if (!CORBA::is_nil (this->process_.in ()))
{
the_process = Test::Process::_duplicate (this->process_.in ());
return 1;
}
return 0;
}
void
Startup_Callback::started (Test::Process_ptr process)
{
ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
this->process_ = Test::Process::_duplicate (process);
}
|