3 //=============================================================================
5 * @file Asynch_Pseudo_Task.h
7 * $Id: Asynch_Pseudo_Task.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Alexander Libman <alibman@ihug.com.au>
11 //=============================================================================
13 #ifndef ACE_ASYNCH_PSEUDO_TASK_H
14 #define ACE_ASYNCH_PSEUDO_TASK_H
16 #include /**/ "ace/pre.h"
18 #include /**/ "ace/config-all.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/Reactor.h"
25 #include "ace/Select_Reactor.h"
28 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
31 * Specialization hook to replace the Reactor with the
32 * concrete Reactor implementation, e.g., select_st,
35 //@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
38 * @class ACE_Asynch_Pseudo_Task
41 class ACE_Export ACE_Asynch_Pseudo_Task
: public ACE_Task
<ACE_NULL_SYNCH
>
44 ACE_Asynch_Pseudo_Task();
45 virtual ~ACE_Asynch_Pseudo_Task();
50 int register_io_handler (ACE_HANDLE handle
,
51 ACE_Event_Handler
*handler
,
52 ACE_Reactor_Mask mask
,
55 int remove_io_handler (ACE_HANDLE handle
);
56 int remove_io_handler (ACE_Handle_Set
&set
);
57 int resume_io_handler (ACE_HANDLE handle
);
58 int suspend_io_handler (ACE_HANDLE handle
);
61 virtual int svc (void);
63 /// Should be initialized before reactor_
64 ACE_Select_Reactor select_reactor_
;
69 ACE_END_VERSIONED_NAMESPACE_DECL
71 #include /**/ "ace/post.h"
73 #endif /* ACE_ASYNCH_PSEUDO_TASK_H */