Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Asynch_Pseudo_Task.h
blob8bf712e76877719438e5a59cdbba18396a073ca4
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
28 /**
29 * @class ACE_Asynch_Pseudo_Task
31 class ACE_Export ACE_Asynch_Pseudo_Task : public ACE_Task<ACE_NULL_SYNCH>
33 public:
34 ACE_Asynch_Pseudo_Task();
35 virtual ~ACE_Asynch_Pseudo_Task();
37 int start ();
38 int stop ();
40 int register_io_handler (ACE_HANDLE handle,
41 ACE_Event_Handler *handler,
42 ACE_Reactor_Mask mask,
43 int flg_suspend);
45 int remove_io_handler (ACE_HANDLE handle);
46 int remove_io_handler (ACE_Handle_Set &set);
47 int resume_io_handler (ACE_HANDLE handle);
48 int suspend_io_handler (ACE_HANDLE handle);
50 protected:
51 virtual int svc ();
53 /// Should be initialized before reactor_
54 ACE_Select_Reactor select_reactor_;
56 ACE_Reactor reactor_;
59 ACE_END_VERSIONED_NAMESPACE_DECL
61 #include /**/ "ace/post.h"
63 #endif /* ACE_ASYNCH_PSEUDO_TASK_H */