Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / tests / Thread_Pool_Reactor_Resume_Test.h
bloba2fe552260dff7ab571c1cc6e33db89cf1d94610
2 //=============================================================================
3 /**
4 * @file Thread_Pool_Reactor_Resume_Test.h
6 * It is only used by Thread_Pool_Reactor_Test.cpp.
8 * @author Irfan Pyarali <irfan@cs.wustl.edu> Nanbor Wang <nanbor@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef ACE_TESTS_THREAD_POOL_REACTOR_RESUME_TEST_H
14 #define ACE_TESTS_THREAD_POOL_REACTOR_RESUME_TEST_H
16 #include "ace/SOCK_Stream.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Svc_Handler.h"
24 /**
25 * @class Request_Handler
27 * @brief This class is the Svc_Handler used by <Acceptor>.
29 class Request_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_MT_SYNCH>
31 public:
32 /// The default constructor makes sure the right reactor is used.
33 Request_Handler (ACE_Thread_Manager *tm = 0);
35 /// Dtor..
36 ~Request_Handler ();
38 virtual int open (void * = 0);
40 protected:
41 virtual int handle_input (ACE_HANDLE fd = ACE_INVALID_HANDLE);
42 virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask = 0);
43 virtual int resume_handler ();
45 private:
46 size_t nr_msgs_rcvd_;
49 #endif /* ACE_TESTS_THREAD_POOL_REACTOR_RESUME_TEST_H */