Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / CSD_ThreadPool / CSD_TP_Custom_Request.h
blobec4d201178b8c3cfbd24cd6a070e9e165494cfb5
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file CSD_TP_Custom_Request.h
7 * @author Tim Bradley <bradley_t@ociweb.com>
8 */
9 //=============================================================================
11 #ifndef TAO_CSD_TP_CUSTOM_REQUEST_H
12 #define TAO_CSD_TP_CUSTOM_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_Request.h"
23 #include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
24 #include "tao/PortableServer/Servant_Base.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace TAO
30 namespace CSD
32 class TP_Custom_Request;
33 typedef TAO_Intrusive_Ref_Count_Handle<TP_Custom_Request>
34 TP_Custom_Request_Handle;
36 /**
37 * @class TP_Custom_Request
39 * @brief Base class for "queue-able" Custom (non-CORBA) requests.
41 * TBD - Add description
44 class TAO_CSD_TP_Export TP_Custom_Request : public TP_Request
46 public:
47 /// Virtual Destructor.
48 virtual ~TP_Custom_Request();
50 protected:
51 /// Constructor.
52 TP_Custom_Request(TP_Custom_Request_Operation* op,
53 TP_Servant_State* servant_state);
55 void execute_op();
56 void cancel_op();
58 private:
59 TP_Custom_Request_Operation_Handle op_;
64 TAO_END_VERSIONED_NAMESPACE_DECL
66 #if defined (__ACE_INLINE__)
67 # include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl"
68 #endif /* __ACE_INLINE__ */
70 #include /**/ "ace/post.h"
72 #endif /* TAO_CSD_TP_CUSTOM_REQUEST_H */