Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / RTCORBA / RT_Current.h
blob5c2b2991336e44f7af56af84ba688b9bd220fa09
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file RT_Current.h
7 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
8 */
9 //=============================================================================
12 #ifndef TAO_RT_CURRENT_H
13 #define TAO_RT_CURRENT_H
14 #include /**/ "ace/pre.h"
16 #include "tao/orbconf.h"
18 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
20 #include "tao/RTCORBA/RTCORBA_includeC.h"
21 #include "tao/LocalObject.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 # pragma once
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #if defined(_MSC_VER)
28 #pragma warning(push)
29 #pragma warning(disable:4250)
30 #endif /* _MSC_VER */
32 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 /**
35 * @class TAO_RT_Current
37 * @brief RTCORBA::Current interface iplementation.
39 * Allows setting/getting the priority of the current thread.
41 class TAO_RTCORBA_Export TAO_RT_Current
42 : public RTCORBA::Current
43 , public ::CORBA::LocalObject
45 public:
46 /// Default constructor.
47 TAO_RT_Current (TAO_ORB_Core *orb_core);
49 virtual RTCORBA::Priority the_priority ();
51 virtual void the_priority (RTCORBA::Priority the_priority);
53 protected:
54 /// Protected destructor to enforce proper memory management of this
55 /// reference counted object.
56 virtual ~TAO_RT_Current ();
58 private:
59 /// ORB Core that owns us.
60 TAO_ORB_Core * const orb_core_;
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #if defined(_MSC_VER)
66 #pragma warning(pop)
67 #endif /* _MSC_VER */
69 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
71 #include /**/ "ace/post.h"
72 #endif /* TAO_RT_CURRENT_H */