Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / Asynch_Pseudo_Task.h
blob6e2c3a1d42757dd9cb575dfc769a550045d5be35
1 // -*- C++ -*-
3 //=============================================================================
4 /**
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)
21 #pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/Reactor.h"
25 #include "ace/Select_Reactor.h"
26 #include "ace/Task.h"
28 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
31 * Specialization hook to replace the Reactor with the
32 * concrete Reactor implementation, e.g., select_st,
33 * select_mt etc.
35 //@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
37 /**
38 * @class ACE_Asynch_Pseudo_Task
41 class ACE_Export ACE_Asynch_Pseudo_Task : public ACE_Task<ACE_NULL_SYNCH>
43 public:
44 ACE_Asynch_Pseudo_Task();
45 virtual ~ACE_Asynch_Pseudo_Task();
47 int start (void);
48 int stop (void);
50 int register_io_handler (ACE_HANDLE handle,
51 ACE_Event_Handler *handler,
52 ACE_Reactor_Mask mask,
53 int flg_suspend);
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);
60 protected:
61 virtual int svc (void);
63 /// Should be initialized before reactor_
64 ACE_Select_Reactor select_reactor_;
66 ACE_Reactor reactor_;
69 ACE_END_VERSIONED_NAMESPACE_DECL
71 #include /**/ "ace/post.h"
73 #endif /* ACE_ASYNCH_PSEUDO_TASK_H */