mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00
* use volatile() to prevent wrong optimizations by llvm
git-svn-id: trunk@40466 -
This commit is contained in:
parent
122d0d36d6
commit
8846041b23
@ -55,7 +55,7 @@ begin
|
||||
if BeginThread({$ifdef fpc}@{$endif}f,pointer(i)) <> tthreadid(0) then
|
||||
inc(started);
|
||||
|
||||
while finished<started do
|
||||
while volatile(finished)<started do
|
||||
{$ifdef wince}sleep(10){$endif};
|
||||
writeln(finished);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user