Skip to content

Commit

Permalink
Work around compile error in specific cases.
Browse files Browse the repository at this point in the history
This appears to have been a bug in Haxe 4.0-4.1's HashLink target. `value++` failed, but `value = value + 1` was fine.
  • Loading branch information
player-03 authored Oct 22, 2024
1 parent 448206c commit 579a7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lime/system/ThreadPool.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -521,7 +521,7 @@ class ThreadPool extends WorkOutput
{
do
{
workIterations.value++;
workIterations.value = workIterations.value + 1;
activeJob.doWork.dispatch(state, this);
timeElapsed = timestamp() - startTime;
}
Expand Down

0 comments on commit 579a7cd

Please sign in to comment.