summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/MT_Server/test_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/MT_Server/test_i.cpp')
-rw-r--r--trunk/TAO/tests/MT_Server/test_i.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/trunk/TAO/tests/MT_Server/test_i.cpp b/trunk/TAO/tests/MT_Server/test_i.cpp
new file mode 100644
index 00000000000..c60a8eee1f7
--- /dev/null
+++ b/trunk/TAO/tests/MT_Server/test_i.cpp
@@ -0,0 +1,29 @@
+// $Id$
+
+#include "test_i.h"
+#include "tao/debug.h"
+#include "ace/OS_NS_unistd.h"
+
+#if !defined(__ACE_INLINE__)
+#include "test_i.inl"
+#endif /* __ACE_INLINE__ */
+
+ACE_RCSID(MT_Server, test_i, "$Id$")
+
+CORBA::Long
+Simple_Server_i::test_method (CORBA::Long x ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "Request in thread %t\n"));
+ ACE_Time_Value tv (0, 15000);
+ ACE_OS::sleep (tv);
+ return x;
+}
+
+void
+Simple_Server_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+}