diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-16 17:57:35 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-16 17:57:35 +0000 |
commit | 85ca4e4feab85c2dcb9ba428f01aed7c95388a1f (patch) | |
tree | c38dbd5e8836b7f1cc210a61c5228e8b9fd587ed /TAO/tao/RTCORBA/RT_ORB.h | |
parent | b8657bd25bd9d7cd83624b980055e6924ca59337 (diff) | |
download | ATCD-85ca4e4feab85c2dcb9ba428f01aed7c95388a1f.tar.gz |
ChangeLogTag: Wed Apr 16 13:44:47 2003 Irfan Pyarali <irfan@oomworks.com>
Diffstat (limited to 'TAO/tao/RTCORBA/RT_ORB.h')
-rw-r--r-- | TAO/tao/RTCORBA/RT_ORB.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/TAO/tao/RTCORBA/RT_ORB.h b/TAO/tao/RTCORBA/RT_ORB.h index 70603bc5f80..99654bda1a6 100644 --- a/TAO/tao/RTCORBA/RT_ORB.h +++ b/TAO/tao/RTCORBA/RT_ORB.h @@ -150,7 +150,7 @@ public: CORBA::Boolean keep_alive, CORBA::Boolean dont_route, CORBA::Boolean no_delay, - CORBA::Boolean enable_network_priority + CORBA::Boolean enable_network_priority ACE_ENV_ARG_DECL_WITH_DEFAULTS) ACE_THROW_SPEC ((CORBA::SystemException )); @@ -240,6 +240,23 @@ public: /// Get the Thread Pool Manager. TAO_Thread_Pool_Manager &tp_manager (void); + /** + * This method changes the scheduling policy of the calling thread + * to match the scheduling policy specified in the svc.conf file. + * The priority of the calling thread will be set to the minimum + * priority supported by that scheduling policy. + * + * This method make sense on those platform (e.g., Linux) where + * PTHREAD_SCOPE_SYSTEM is the only scheduling scope supported. On + * other platforms, this method is a no-op since the only way to get + * the real-time threading behavior is to setup the + * PTHREAD_SCOPE_SYSTEM scheduling scope when a thread is being + * created. On such platforms, one can set the correct scheduling + * scope and policy when creating the thread, thus not needing to + * use this method. + */ + static int modify_thread_scheduling_policy (CORBA::ORB_ptr orb); + protected: /// Protected destructor to enforce proper memory management of this /// reference counted object. |