//
// $Id: Startup_Callback.cpp 91649 2010-09-08 13:44:26Z johnnyw $
//
#include "Startup_Callback.h"

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);
}
