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