Zero wait yields (#11561)

* Zero wait yields

* Zero wait yields (fix)
This commit is contained in:
Cardillan
2026-01-14 19:33:58 +01:00
committed by GitHub
parent dc7e984fbe
commit 120fe61980

View File

@@ -1167,7 +1167,12 @@ public class LExecutor{
@Override
public void run(LExecutor exec){
if(curTime >= value.num()){
if(value.num() <= 0){
// Just yield without executing the wait again
exec.yield = true;
// Start the next wait afresh ('value' might have been modified remotely by a different processor)
curTime = 0f;
}else if(curTime >= value.num()){
curTime = 0f;
}else{
//skip back to self.