summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3768_Regression/TestCallback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_3768_Regression/TestCallback.cpp')
-rw-r--r--TAO/tests/Bug_3768_Regression/TestCallback.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/TAO/tests/Bug_3768_Regression/TestCallback.cpp b/TAO/tests/Bug_3768_Regression/TestCallback.cpp
new file mode 100644
index 00000000000..9923c07418a
--- /dev/null
+++ b/TAO/tests/Bug_3768_Regression/TestCallback.cpp
@@ -0,0 +1,31 @@
+//
+// $Id: TestCallback.cpp
+//
+#include "TestCallback.h"
+#include "ace/OS_NS_unistd.h"
+
+TestCallback::TestCallback (CORBA::ORB_ptr orb)
+ : work_ (orb)
+{
+}
+
+void
+TestCallback::start_threads_and_block (void)
+{
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - start_threads_and_block\n"));
+ work_.activate(0,10);
+ ACE_OS::sleep(-1);
+}
+
+void
+TestCallback::test_call (void)
+{
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - test_call\n"));
+}
+
+void
+TestCallback::shutdown (void)
+{
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - test completed\n"));
+ exit (0);
+}