#include <RT_Current.h>
Inheritance diagram for TAO_RT_Current:
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. |
Allows setting/getting the priority of the current thread.
Definition at line 46 of file RT_Current.h.
|
Default constructor.
Definition at line 23 of file RT_Current.cpp.
00024 : orb_core_ (orb_core) 00025 { 00026 } |
|
Protected destructor to enforce proper memory management of this reference counted object. Definition at line 28 of file RT_Current.cpp.
00029 { 00030 } |
|
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 } |
|
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 } |
|
ORB Core that owns us.
Reimplemented from CORBA::Object. Definition at line 71 of file RT_Current.h. |