summaryrefslogtreecommitdiff
path: root/TAO/tests/Two_Objects/First_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Two_Objects/First_i.cpp')
-rw-r--r--TAO/tests/Two_Objects/First_i.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/TAO/tests/Two_Objects/First_i.cpp b/TAO/tests/Two_Objects/First_i.cpp
new file mode 100644
index 00000000000..b275e55e0be
--- /dev/null
+++ b/TAO/tests/Two_Objects/First_i.cpp
@@ -0,0 +1,29 @@
+//
+// $Id$
+//
+
+#include "First_i.h"
+#include "tao/ORB_Core.h"
+#include "tao/debug.h"
+#include "tao/Transport_Cache_Manager.h"
+#include "ace/Synch.h"
+#include "ace/Auto_Event.h"
+
+ACE_RCSID(Test, First_i, "$Id$")
+
+First_i::First_i (CORBA::ORB_ptr orb, ACE_Auto_Event &two_way_done)
+ : orb_ (CORBA::ORB::_duplicate (orb)),
+ two_way_done_(two_way_done)
+{
+}
+
+void
+First_i::oneway_method (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) one way method called. About to wait for two way call completion\n"));
+
+ two_way_done_.wait ();
+
+ ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) woke up after wait\n"));
+}