summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2683_Regression/test_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2683_Regression/test_i.h')
-rw-r--r--TAO/tests/Bug_2683_Regression/test_i.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/TAO/tests/Bug_2683_Regression/test_i.h b/TAO/tests/Bug_2683_Regression/test_i.h
new file mode 100644
index 00000000000..45c844846f8
--- /dev/null
+++ b/TAO/tests/Bug_2683_Regression/test_i.h
@@ -0,0 +1,45 @@
+// -*- C++ -*-
+//
+// $Id$
+//
+
+#ifndef TEST_I_H
+#define TEST_I_H
+#include /**/ "ace/pre.h"
+
+#include "TestS.h"
+#include "ace/Task.h"
+
+class ORB_Killer : public ACE_Task_Base
+{
+public:
+ /// Constructor
+ ORB_Killer (CORBA::ORB_ptr orb);
+ virtual int svc (void);
+private:
+ CORBA::ORB_var orb_;
+};
+
+/// Implement the Test::Hello interface
+class test_i
+ : public virtual POA_Test::IORTable_Shutdown_Race
+{
+public:
+ /// Constructor
+ test_i (ORB_Killer *k);
+
+ // = The skeleton methods
+ virtual void ping (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+private:
+ /// Use an ORB reference to conver strings to objects and shutdown
+ /// the application.
+ ORB_Killer *killer_;
+};
+
+#include /**/ "ace/post.h"
+#endif /* IOR_RACE_I_H */