diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/tests/RTCORBA/check_supported_priorities.cpp | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tests/RTCORBA/check_supported_priorities.cpp')
-rw-r--r-- | TAO/tests/RTCORBA/check_supported_priorities.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/TAO/tests/RTCORBA/check_supported_priorities.cpp b/TAO/tests/RTCORBA/check_supported_priorities.cpp deleted file mode 100644 index bfbff8af5ac..00000000000 --- a/TAO/tests/RTCORBA/check_supported_priorities.cpp +++ /dev/null @@ -1,53 +0,0 @@ -// $Id$ - -#include "ace/Sched_Params.h" -#include "tao/ORB_Core.h" -#include "tao/ORB.h" - -const char * -sched_policy_name (int sched_policy) -{ - const char *name = 0; - - switch (sched_policy) - { - case ACE_SCHED_OTHER: - name = "SCHED_OTHER"; - break; - case ACE_SCHED_RR: - name = "SCHED_RR"; - break; - case ACE_SCHED_FIFO: - name = "SCHED_FIFO"; - break; - } - - return name; -} - -bool -check_supported_priorities (CORBA::ORB_ptr orb) -{ - int sched_policy = - orb->orb_core ()->orb_params ()->ace_sched_policy (); - - // Check that we have sufficient priority range to run this test, - // i.e., more than 1 priority level. - int max_priority = - ACE_Sched_Params::priority_max (sched_policy); - int min_priority = - ACE_Sched_Params::priority_min (sched_policy); - - if (max_priority == min_priority) - { - ACE_DEBUG ((LM_DEBUG, - "Not enough priority levels with the %s scheduling policy\n" - "on this platform to run the test, terminating program....\n" - "Check svc.conf options\n", - sched_policy_name (sched_policy))); - - return false; - } - - return true; -} |