mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 11:49:27 +02:00
* Use ThreadSwitch.
git-svn-id: trunk@32076 -
This commit is contained in:
parent
c9a0c5e7a6
commit
44777f3797
@ -123,7 +123,11 @@ begin
|
|||||||
writeln('InterLockedCompareExchange seems to be broken.');
|
writeln('InterLockedCompareExchange seems to be broken.');
|
||||||
Halt(10);
|
Halt(10);
|
||||||
end;
|
end;
|
||||||
|
{$ifdef FPC}
|
||||||
|
ThreadSwitch;
|
||||||
|
{$else}
|
||||||
Sleep(0);
|
Sleep(0);
|
||||||
|
{$endif FPC}
|
||||||
end;
|
end;
|
||||||
if FOption + 2 <> LastCompareVal then
|
if FOption + 2 <> LastCompareVal then
|
||||||
InterLockedIncrement(Counter3)
|
InterLockedIncrement(Counter3)
|
||||||
|
Loading…
Reference in New Issue
Block a user