* Use ThreadSwitch.

git-svn-id: trunk@32076 -
This commit is contained in:
yury 2015-10-17 16:03:18 +00:00
parent c9a0c5e7a6
commit 44777f3797

View File

@ -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)