blob: 792b9a4e0c1ab059bd8049da9ddd52a7e89f5e9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// $Id$
#include "ace/Sched_Params.h"
void
check_supported_priorities (void)
{
// 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 (ACE_SCHED_OTHER);
int min_priority =
ACE_Sched_Params::priority_min (ACE_SCHED_OTHER);
if (max_priority == min_priority)
{
ACE_DEBUG ((LM_DEBUG,
"Not enough priority levels on this platform"
"to run the test, aborting\n"));
ACE_OS::exit (0);
}
}
|