1 #include "ace/Event_Handler_T.h"
2 #include "ace/Log_Msg.h"
4 class ACE_Test_Sig_Handler
7 ACE_Test_Sig_Handler () {}
8 virtual ~ACE_Test_Sig_Handler () {}
9 virtual ACE_HANDLE
get_handle () const { return 0; }
10 virtual void set_handle (ACE_HANDLE
) {}
11 virtual int handle_async_io (ACE_HANDLE
) { return 0; }
13 //FUZZ: disable check_for_lack_ACE_OS
14 virtual int shutdown (ACE_HANDLE
, ACE_Reactor_Mask
) { return 0; }
15 //FUZZ: enable check_for_lack_ACE_OS
17 virtual int signal_handler (int /* signum */, siginfo_t
* = 0, ucontext_t
* = 0)
24 ACE_TMAIN (int, ACE_TCHAR
*[])
26 typedef ACE_Event_Handler_T
<ACE_Test_Sig_Handler
> EH_SH
;
28 // Tie the ACE_Event_Handler_T together with the methods from ACE_Test_Sig_Handler.
29 EH_SH
tied_sh (new ACE_Test_Sig_Handler
, 1,
30 &ACE_Test_Sig_Handler::get_handle
,
31 &ACE_Test_Sig_Handler::handle_async_io
,
32 &ACE_Test_Sig_Handler::shutdown
,
33 &ACE_Test_Sig_Handler::signal_handler
);