Track Jeff's changes to vxWorks/osdThread.c priority calculations.

This commit is contained in:
W. Eric Norum
2000-06-15 15:15:53 +00:00
parent 93c345b514
commit d6b988d155
+16 -3
View File
@@ -60,12 +60,25 @@ static semMutexId onceMutex;
*/
int threadGetOsiPriorityValue(int ossPriority)
{
return (199 - ossPriority);
if (ossPriority < 100) {
return threadPriorityMax;
}
else if (ossPriority > 199) {
return threadPriorityMin;
}
else {
return (199u - (unsigned int)ossPriority);
}
}
int threadGetOssPriorityValue(int osiPriority)
int threadGetOssPriorityValue(unsigned int osiPriority)
{
return (199 - osiPriority);
if (osiPriority > 99) {
return 100;
}
else {
return (199 - (signed int)osiPriority);
}
}
/*