@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user