git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 1cfa89100b6932dc2f692d9f806822895ada81ad

only update the scheduler on changes

wanderer committed on 7/5/2017, 9:51:56 PM
Parent: 7dc277be0c3a95ca7e090f1768ddf2c8990e785f

Files changed

kernel.jschanged
kernel.jsView
@@ -60,10 +60,10 @@
6060 // if the message we recived had more ticks then we currently have the
6161 // update it
6262 if (message._fromTicks > this.ticks) {
6363 this.ticks = message._fromTicks
64+ this.hypervisor.scheduler.update(this)
6465 }
65- this.hypervisor.scheduler.update(this)
6666 // run the next message
6767 this.run(message)
6868 }
6969 }
@@ -104,9 +104,8 @@
104104 }
105105
106106 this.ports.clearUnboundedPorts()
107107 this._runNextMessage()
108- return result
109108 }
110109
111110 getResponsePort (message) {
112111 if (message.responsePort) {

Built with git-ssb-web