summaryrefslogtreecommitdiff
path: root/examples/Reactor
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-27 14:43:52 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-27 14:43:52 +0000
commit561b21f84f2b4c4a0eb071e285fdd9d65a2a4bbb (patch)
treee2b79ec8ba5f3320df4e5d85a68c8faaf239003d /examples/Reactor
parent7cfd2491809224cee5f3c9bc307cb8bdcc2a97a9 (diff)
downloadATCD-561b21f84f2b4c4a0eb071e285fdd9d65a2a4bbb.tar.gz
removed special-case support for ACE_HAS_SIGNFO_T, because ace/OS.h declares a siginfo_t without it
Diffstat (limited to 'examples/Reactor')
-rw-r--r--examples/Reactor/Misc/test_event_handler_t.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/examples/Reactor/Misc/test_event_handler_t.cpp b/examples/Reactor/Misc/test_event_handler_t.cpp
index 3731a1c6a0e..cebbfc35e9a 100644
--- a/examples/Reactor/Misc/test_event_handler_t.cpp
+++ b/examples/Reactor/Misc/test_event_handler_t.cpp
@@ -1,4 +1,3 @@
-
// $Id$
#include "ace/Event_Handler_T.h"
@@ -13,29 +12,34 @@ public:
virtual void set_handle (ACE_HANDLE) {}
virtual int handle_async_io (ACE_HANDLE) { return 0; }
virtual int shutdown (ACE_HANDLE, ACE_Reactor_Mask) { return 0; }
- virtual int signal_handler (ACE_HANDLE signum
-#if defined (ACE_HAS_SIGINFO_T)
- , siginfo_t * = 0, ucontext_t * = 0
-#endif /* ACE_HAS_SIGINFO_T */
- )
+ virtual int signal_handler (ACE_HANDLE signum,
+ siginfo_t * = 0,
+ ucontext_t * = 0)
{
return 0;
}
};
-int
+int
main (int, char *[])
{
typedef ACE_Event_Handler_T<ACE_Sig_Handler> EH_SH;
// Tie the ACE_Event_Handler_T together with the methods from ACE_Sig_Handler.
EH_SH tied_sh (new ACE_Sig_Handler, 1,
- &ACE_Sig_Handler::get_handle,
- &ACE_Sig_Handler::handle_async_io,
- &ACE_Sig_Handler::shutdown,
- &ACE_Sig_Handler::signal_handler);
+ &ACE_Sig_Handler::get_handle,
+ &ACE_Sig_Handler::handle_async_io,
+ &ACE_Sig_Handler::shutdown,
+ &ACE_Sig_Handler::signal_handler);
return 0;
}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+template class ACE_Event_Handler_T<ACE_Sig_Handler>;
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#pragma instantiate ACE_Event_Handler_T<ACE_Sig_Handler>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
#else
int
main (int, char *[])