diff options
Diffstat (limited to 'tests/MT_NoUpcall_Client_Leader/worker.cpp')
-rw-r--r-- | tests/MT_NoUpcall_Client_Leader/worker.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/MT_NoUpcall_Client_Leader/worker.cpp b/tests/MT_NoUpcall_Client_Leader/worker.cpp new file mode 100644 index 00000000000..5c5041b6418 --- /dev/null +++ b/tests/MT_NoUpcall_Client_Leader/worker.cpp @@ -0,0 +1,23 @@ +// $Id$ + +#include "worker.h" + +Worker::Worker (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +int +Worker::svc (void) +{ + ACE_DEBUG((LM_INFO,"(%P|%t) Running ORB in a separate thread\n")); + try + { + this->orb_->run (); + } + catch (const CORBA::Exception&) + { + } + return 0; +} + |