GitHub Actions: Try MSVC builds with /std:c++17 and 20
[ACE_TAO.git] / ACE / ace / Asynch_Pseudo_Task.h
blob4337361fe4440648d562b7dc6076820540caefd7
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Asynch_Pseudo_Task.h
7 * @author Alexander Libman <alibman@ihug.com.au>
8 */
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)
19 #pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Reactor.h"
23 #include "ace/Select_Reactor.h"
24 #include "ace/Task.h"
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
29 * Specialization hook to replace the Reactor with the
30 * concrete Reactor implementation, e.g., select_st,
31 * select_mt etc.
33 //@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
35 /**
36 * @class ACE_Asynch_Pseudo_Task
38 class ACE_Export ACE_Asynch_Pseudo_Task : public ACE_Task<ACE_NULL_SYNCH>
40 public:
41 ACE_Asynch_Pseudo_Task();
42 virtual ~ACE_Asynch_Pseudo_Task();
44 int start (void);
45 int stop (void);
47 int register_io_handler (ACE_HANDLE handle,
48 ACE_Event_Handler *handler,
49 ACE_Reactor_Mask mask,
50 int flg_suspend);
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);
57 protected:
58 virtual int svc (void);
60 /// Should be initialized before reactor_
61 ACE_Select_Reactor select_reactor_;
63 ACE_Reactor reactor_;
66 ACE_END_VERSIONED_NAMESPACE_DECL
68 #include /**/ "ace/post.h"
70 #endif /* ACE_ASYNCH_PSEUDO_TASK_H */