Commit 8c18358702ca2a0a21af3147cd8ff67d5773f91e
Merge branch 'master' into scheduler-cleanup
Daniel Tsui authored on 11/22/2017, 5:46:42 AMGitHub committed on 11/22/2017, 5:46:42 AM
Parent: 1a02908906ad592224398890dbe31da370639340
Parent: d0480ef3e0dd3c49070017e1bd5379dadd2aa4ee
Files changed
actor.js | changed |
scheduler.js | changed |
actor.js | ||
---|---|---|
@@ -42,9 +42,9 @@ | ||
42 | 42 … | } |
43 | 43 … | } |
44 | 44 … | |
45 | 45 … | /** |
46 | - * adds a message to this containers message queue | |
46 … | + * adds a message to this actor's message queue | |
47 | 47 … | * @param {string} portName |
48 | 48 … | * @param {object} message |
49 | 49 … | */ |
50 | 50 … | queue (message) { |
@@ -131,9 +131,9 @@ | ||
131 | 131 … | } |
132 | 132 … | } |
133 | 133 … | |
134 | 134 … | /** |
135 | - * updates the number of ticks that the container has run | |
135 … | + * updates the number of ticks that the actor has run | |
136 | 136 … | * @param {Number} count - the number of ticks to add |
137 | 137 … | */ |
138 | 138 … | incrementTicks (count) { |
139 | 139 … | this.ticks += count |
scheduler.js | ||
---|---|---|
@@ -7,9 +7,10 @@ | ||
7 | 7 … | } |
8 | 8 … | |
9 | 9 … | module.exports = class Scheduler { |
10 | 10 … | /** |
11 | - * the Scheduler keeps track of which containers are instantiated, running, and waiting for a message | |
11 … | + * The Scheduler manages the actor instances and tracks how many "ticks" they | |
12 … | + * have ran. | |
12 | 13 … | */ |
13 | 14 … | constructor () { |
14 | 15 … | this._waits = [] |
15 | 16 … | this._running = new Set() |
Built with git-ssb-web