TAO_RT_Current Class Reference

RTCORBA::Current interface iplementation. More...

#include <RT_Current.h>

Inheritance diagram for TAO_RT_Current:

Inheritance graph
[legend]
Collaboration diagram for TAO_RT_Current:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_RT_Current (TAO_ORB_Core *orb_core)
 Default constructor.

virtual RTCORBA::Priority the_priority () throw (CORBA::SystemException)
virtual void the_priority (RTCORBA::Priority the_priority) throw (CORBA::SystemException)

Protected Member Functions

virtual ~TAO_RT_Current (void)

Private Attributes

TAO_ORB_Core *const  orb_core_
 ORB Core that owns us.


Detailed Description

RTCORBA::Current interface iplementation.

Allows setting/getting the priority of the current thread.

Definition at line 46 of file RT_Current.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_RT_Current::TAO_RT_Current TAO_ORB_Core orb_core  ) 
 

Default constructor.

Definition at line 23 of file RT_Current.cpp.

00024   : orb_core_ (orb_core)
00025 {
00026 }

TAO_RT_Current::~TAO_RT_Current void   )  [protected, virtual]
 

Protected destructor to enforce proper memory management of this reference counted object.

Definition at line 28 of file RT_Current.cpp.

00029 {
00030 }


Member Function Documentation

void TAO_RT_Current::the_priority RTCORBA::Priority  the_priority  )  throw (CORBA::SystemException) [virtual]
 

Definition at line 53 of file RT_Current.cpp.

References ACE_CHECK, ACE_ENV_ARG_PARAMETER, ACE_THROW, RTCORBA::Priority, and TAO_Protocols_Hooks::set_thread_CORBA_priority().

00056 {
00057 
00058   TAO_Protocols_Hooks *tph =
00059     this->orb_core_->get_protocols_hooks ();
00060 
00061   int result =
00062     tph->set_thread_CORBA_priority (the_priority
00063                                     ACE_ENV_ARG_PARAMETER);
00064   ACE_CHECK;
00065 
00066   if (result == -1)
00067     ACE_THROW (CORBA::DATA_CONVERSION (1, CORBA::COMPLETED_NO));
00068 }

RTCORBA::Priority TAO_RT_Current::the_priority  )  throw (CORBA::SystemException) [virtual]
 

Implements RTCORBA::Current.

Definition at line 33 of file RT_Current.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_PARAMETER, ACE_THROW_RETURN, TAO_Protocols_Hooks::get_thread_CORBA_priority(), and RTCORBA::Priority.

00035 {
00036   TAO_Protocols_Hooks *tph =
00037     this->orb_core_->get_protocols_hooks ();
00038 
00039   RTCORBA::Priority priority;
00040 
00041   int result =
00042     tph->get_thread_CORBA_priority (priority
00043                                     ACE_ENV_ARG_PARAMETER);
00044   ACE_CHECK_RETURN (-1);
00045 
00046   if (result == -1)
00047     ACE_THROW_RETURN (CORBA::DATA_CONVERSION (1, CORBA::COMPLETED_NO), -1);
00048 
00049   return priority;
00050 }


Member Data Documentation

TAO_ORB_Core* const TAO_RT_Current::orb_core_ [private]
 

ORB Core that owns us.

Reimplemented from CORBA::Object.

Definition at line 71 of file RT_Current.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:59:29 2006 for TAO_RTCORBA by doxygen 1.3.6