RT_Current.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   RT_Current.h
00006  *
00007  *  $Id: RT_Current.h 81429 2008-04-24 18:49:54Z johnnyw $
00008  *
00009  *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef TAO_RT_CURRENT_H
00015 #define TAO_RT_CURRENT_H
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "tao/orbconf.h"
00019 
00020 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00021 
00022 #include "tao/RTCORBA/RTCORBA_includeC.h"
00023 #include "tao/LocalObject.h"
00024 
00025 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00026 # pragma once
00027 #endif /* ACE_LACKS_PRAGMA_ONCE */
00028 
00029 #if defined(_MSC_VER)
00030 #pragma warning(push)
00031 #pragma warning(disable:4250)
00032 #endif /* _MSC_VER */
00033 
00034 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00035 
00036 /**
00037  * @class TAO_RT_Current
00038  *
00039  * @brief RTCORBA::Current interface iplementation.
00040  *
00041  * Allows setting/getting the priority of the current thread.
00042  */
00043 class TAO_RTCORBA_Export TAO_RT_Current
00044   : public RTCORBA::Current
00045   , public ::CORBA::LocalObject
00046 {
00047 public:
00048 
00049   /// Default constructor.
00050   TAO_RT_Current (TAO_ORB_Core *orb_core);
00051 
00052   virtual RTCORBA::Priority the_priority (void);
00053 
00054   virtual void the_priority (RTCORBA::Priority the_priority);
00055 
00056 protected:
00057 
00058   /// Protected destructor to enforce proper memory management of this
00059   /// reference counted object.
00060   virtual ~TAO_RT_Current (void);
00061 
00062 private:
00063 
00064   /// ORB Core that owns us.
00065   TAO_ORB_Core * const orb_core_;
00066 
00067 };
00068 
00069 TAO_END_VERSIONED_NAMESPACE_DECL
00070 
00071 #if defined(_MSC_VER)
00072 #pragma warning(pop)
00073 #endif /* _MSC_VER */
00074 
00075 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
00076 
00077 #include /**/ "ace/post.h"
00078 #endif /* TAO_RT_CURRENT_H */

Generated on Tue Feb 2 17:42:49 2010 for TAO_RTCORBA by  doxygen 1.4.7