mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 09:07:59 +02:00
* fix for SysThreadSetPriority
git-svn-id: trunk@19783 -
This commit is contained in:
parent
4a79262728
commit
f56cd3d6d9
@ -487,10 +487,10 @@ begin
|
||||
else
|
||||
begin
|
||||
Delta := Prio * 2;
|
||||
if Delta + TPrio (PrioLevel) < 0 then
|
||||
Delta := - TPrio (PrioLevel)
|
||||
else if Delta + TPrio (PrioLevel) > 31 then
|
||||
Delta := 31 - TPrio (PrioLevel);
|
||||
if Delta + TPrio (Priority).PrioLevel < 0 then
|
||||
Delta := - TPrio (Priority).PrioLevel
|
||||
else if Delta + TPrio (Priority).PrioLevel > 31 then
|
||||
Delta := 31 - TPrio (Priority).PrioLevel;
|
||||
SysThreadSetPriority :=
|
||||
DosSetPriority (dpThread, dpSameClass, Delta, ThreadHandle) = 0;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user