fixed bug where win32 version of epicsThreadHighestPriorityLevelBelow didnt map to a lower priority successfully if the epics priority was mapping into the 2nd win32 priority bucket
This commit is contained in:
@@ -433,7 +433,7 @@ epicsShareFunc epicsThreadBooleanStatus epicsShareAPI epicsThreadHighestPriority
|
||||
|
||||
magnitude = osdPriorityMagFromPriorityOSI ( priority, stateCount );
|
||||
|
||||
if ( magnitude > 1u ) {
|
||||
if ( magnitude > 0u ) {
|
||||
*pPriorityJustBelow = osiPriorityMagFromMagnitueOSD ( magnitude - 1u, stateCount );
|
||||
status = epicsThreadBooleanStatusSuccess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user