mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-15 12:27:50 +00:00
handle pending simulation thread events before simulation starts, just
after loading
This commit is contained in:
@@ -685,6 +685,12 @@ public class Simulation extends Observable implements Runnable {
|
|||||||
|
|
||||||
setChanged();
|
setChanged();
|
||||||
notifyObservers(this);
|
notifyObservers(this);
|
||||||
|
|
||||||
|
/* Execute simulation thread events now, before simulation starts */
|
||||||
|
while (hasPollRequests) {
|
||||||
|
popSimulationInvokes().run();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user