4 UIPMC_Object_Impl::UIPMC_Object_Impl (CORBA::ORB_ptr orb
,
5 CORBA::ULong num_threads
)
6 : orb_ (CORBA::ORB::_duplicate (orb
))
7 , barrier_ ((unsigned int) num_threads
)
12 UIPMC_Object_Impl::~UIPMC_Object_Impl (void)
17 UIPMC_Object_Impl::process ()
19 ACE_DEBUG ((LM_DEBUG
, "Server %t received a message\n"));
20 this->barrier_
.wait ();
21 static bool shutdown
=false;
24 ACE_GUARD (TAO_SYNCH_MUTEX
, guard
, this->lock_
);
28 ACE_DEBUG ((LM_DEBUG
, "Server %t Shutting down\n"));
31 this->orb_
->shutdown (0);
33 catch (const CORBA::Exception
& ex
)
35 ex
._tao_print_exception (
36 "Server %t, Exception caught in shutdown():");