3 //=============================================================================
5 * @file Asynch_Pseudo_Task.h
7 * @author Alexander Libman <alibman@ihug.com.au>
9 //=============================================================================
11 #ifndef ACE_ASYNCH_PSEUDO_TASK_H
12 #define ACE_ASYNCH_PSEUDO_TASK_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/config-all.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Reactor.h"
23 #include "ace/Select_Reactor.h"
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
29 * Specialization hook to replace the Reactor with the
30 * concrete Reactor implementation, e.g., select_st,
33 //@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
36 * @class ACE_Asynch_Pseudo_Task
38 class ACE_Export ACE_Asynch_Pseudo_Task
: public ACE_Task
<ACE_NULL_SYNCH
>
41 ACE_Asynch_Pseudo_Task();
42 virtual ~ACE_Asynch_Pseudo_Task();
47 int register_io_handler (ACE_HANDLE handle
,
48 ACE_Event_Handler
*handler
,
49 ACE_Reactor_Mask mask
,
52 int remove_io_handler (ACE_HANDLE handle
);
53 int remove_io_handler (ACE_Handle_Set
&set
);
54 int resume_io_handler (ACE_HANDLE handle
);
55 int suspend_io_handler (ACE_HANDLE handle
);
58 virtual int svc (void);
60 /// Should be initialized before reactor_
61 ACE_Select_Reactor select_reactor_
;
66 ACE_END_VERSIONED_NAMESPACE_DECL
68 #include /**/ "ace/post.h"
70 #endif /* ACE_ASYNCH_PSEUDO_TASK_H */