Skip to content

Commit abcd5fe

Browse files
committed
tests: yield in the shared-string concurrency barrier
1 parent ed5d410 commit abcd5fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎RTL-test/semantic/string_refcount_concurrency_semantic.dpr‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ end;
3737
procedure SpinUntil(var Value: LongInt; Expected: LongInt); inline;
3838
begin
3939
while AtomicRead(Value) < Expected do
40-
;
40+
TThread.Yield;
4141
end;
4242

4343
procedure TCopyThread.Execute;

0 commit comments

Comments
 (0)