Merge remote-tracking branch 'upstream/master'
[ACE_TAO.git] / TAO / tests / Two_Objects / First_i.cpp
blob7909a5a3de1fce08d95d6cf0beae7ef740350a72
2 #include "First_i.h"
3 #include "tao/ORB_Core.h"
4 #include "tao/debug.h"
5 #include "tao/Transport_Cache_Manager.h"
6 #include "ace/Synch.h"
7 #include "ace/Auto_Event.h"
9 First_i::First_i (CORBA::ORB_ptr orb, ACE_Auto_Event &two_way_done)
10 : orb_ (CORBA::ORB::_duplicate (orb)),
11 two_way_done_(two_way_done)
15 void
16 First_i::oneway_method (void)
18 ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) one way method called. About to wait for two way call completion\n"));
20 two_way_done_.wait ();
22 ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) woke up after wait\n"));