mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 01:39:26 +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.');
|
||||
Halt(10);
|
||||
end;
|
||||
{$ifdef FPC}
|
||||
ThreadSwitch;
|
||||
{$else}
|
||||
Sleep(0);
|
||||
{$endif FPC}
|
||||
end;
|
||||
if FOption + 2 <> LastCompareVal then
|
||||
InterLockedIncrement(Counter3)
|
||||
|
Loading…
Reference in New Issue
Block a user