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; }