From f4a8ffff69f5882a11e1fec34bd22e0441c63d2c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 22 Sep 2023 19:27:09 +0200 Subject: WorkerThread.start(paused): Merge RUNNING | ACTIVE Last review editting I hope :) --- src/java/com/jogamp/common/util/WorkerThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/jogamp/common/util/WorkerThread.java b/src/java/com/jogamp/common/util/WorkerThread.java index 42466da..6b65e1c 100644 --- a/src/java/com/jogamp/common/util/WorkerThread.java +++ b/src/java/com/jogamp/common/util/WorkerThread.java @@ -168,7 +168,7 @@ public class WorkerThread { while( !isSet(RUNNING) && null != thread && !isSet(SHALL_STOP) ) { this.wait(); // wait until started } - while( isSet(RUNNING) && isSet(ACTIVE) && null != thread && !isSet(SHALL_STOP) ) { + while( isSet(RUNNING | ACTIVE) && null != thread && !isSet(SHALL_STOP) ) { this.wait(); // wait until paused } } -- cgit v1.2.3