3 //=============================================================================
7 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
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)
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
29 #pragma warning(disable:4250)
32 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
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
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
);
54 /// Protected destructor to enforce proper memory management of this
55 /// reference counted object.
56 virtual ~TAO_RT_Current ();
59 /// ORB Core that owns us.
60 TAO_ORB_Core
* const orb_core_
;
63 TAO_END_VERSIONED_NAMESPACE_DECL
69 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
71 #include /**/ "ace/post.h"
72 #endif /* TAO_RT_CURRENT_H */