Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Client_Leaks / Startup_Callback.cpp
blob66a214d2b4b12548e216e3f325c4ff3ffec75cb5
1 #include "Startup_Callback.h"
3 Startup_Callback::Startup_Callback ()
7 int
8 Startup_Callback::process_has_started (Test::Process_out the_process)
10 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
11 if (!CORBA::is_nil (this->process_.in ()))
13 the_process = Test::Process::_duplicate (this->process_.in ());
14 return 1;
16 return 0;
19 void
20 Startup_Callback::started (Test::Process_ptr process)
22 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
23 this->process_ = Test::Process::_duplicate (process);