From 579a7cd61b6dc9e90759f8e7af9fb83064c6ad04 Mon Sep 17 00:00:00 2001 From: player-03 Date: Tue, 22 Oct 2024 13:49:03 -0400 Subject: [PATCH] Work around compile error in specific cases. This appears to have been a bug in Haxe 4.0-4.1's HashLink target. `value++` failed, but `value = value + 1` was fine. --- src/lime/system/ThreadPool.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lime/system/ThreadPool.hx b/src/lime/system/ThreadPool.hx index ec8669b29..d64bff98b 100644 --- a/src/lime/system/ThreadPool.hx +++ b/src/lime/system/ThreadPool.hx @@ -425,7 +425,7 @@ class ThreadPool extends WorkOutput { while (!output.__jobComplete.value && (interruption = Thread.readMessage(false)) == null) { - output.workIterations.value++; + output.workIterations.value = output.workIterations.value + 1; event.job.doWork.dispatch(event.job.state, output); } } @@ -521,7 +521,7 @@ class ThreadPool extends WorkOutput { do { - workIterations.value++; + workIterations.value = workIterations.value + 1; activeJob.doWork.dispatch(state, this); timeElapsed = timestamp() - startTime; }