summaryrefslogtreecommitdiff
path: root/ACE/TAO/tests/Bug_1361_Regression/ORB_Task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tests/Bug_1361_Regression/ORB_Task.cpp')
-rw-r--r--ACE/TAO/tests/Bug_1361_Regression/ORB_Task.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Bug_1361_Regression/ORB_Task.cpp b/ACE/TAO/tests/Bug_1361_Regression/ORB_Task.cpp
new file mode 100644
index 00000000000..e916f9b08f4
--- /dev/null
+++ b/ACE/TAO/tests/Bug_1361_Regression/ORB_Task.cpp
@@ -0,0 +1,31 @@
+/**
+ * @file ORB_Task.cpp
+ *
+ * $Id$
+ *
+ * @author Carlos O'Ryan <coryan@atdesk.com>
+ *
+ */
+#include "ORB_Task.h"
+#include "tao/Environment.h"
+
+ACE_RCSID (Bug_1361_Regression,
+ ORB_Task, "$Id$")
+
+ORB_Task::ORB_Task (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+int
+ORB_Task::svc (void)
+{
+ try
+ {
+ this->orb_->run ();
+ }
+ catch (const CORBA::Exception& )
+ {
+ }
+ return 0;
+}