Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / CSD_ThreadPool / CSD_TP_Custom_Asynch_Request.h
blob1711dca398792417b02e5dec7601b685ae10dcf9
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file CSD_TP_Custom_Asynch_Request.h
7 * @author Tim Bradley <bradley_t@ociweb.com>
8 */
9 //=============================================================================
11 #ifndef TAO_CSD_TP_CUSTOM_ASYNCH_REQUEST_H
12 #define TAO_CSD_TP_CUSTOM_ASYNCH_REQUEST_H
14 #include /**/ "ace/pre.h"
16 #include "tao/CSD_ThreadPool/CSD_TP_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 namespace TAO
28 namespace CSD
30 class TP_Custom_Asynch_Request;
31 typedef TAO_Intrusive_Ref_Count_Handle<TP_Custom_Asynch_Request>
32 TP_Custom_Asynch_Request_Handle;
34 /**
35 * @class TP_Custom_Asynch_Request
37 * @brief Base class for "queue-able", Custom (non-CORBA),
38 * Synchronous requests.
40 * TBD - Add description
43 class TAO_CSD_TP_Export TP_Custom_Asynch_Request
44 : public TP_Custom_Request
46 public:
47 /// Constructor.
48 TP_Custom_Asynch_Request(TP_Custom_Request_Operation* op,
49 TP_Servant_State* servant_state);
51 /// Virtual Destructor.
52 virtual ~TP_Custom_Asynch_Request();
54 protected:
55 /// Dispatch the request to the servant.
56 virtual void dispatch_i();
58 /// Cancel the request.
59 virtual void cancel_i();
64 TAO_END_VERSIONED_NAMESPACE_DECL
66 #if defined (__ACE_INLINE__)
67 # include "tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl"
68 #endif /* __ACE_INLINE__ */
70 #include /**/ "ace/post.h"
72 #endif /* TAO_CSD_TP_CUSTOM_ASYNCH_REQUEST_H */