Lines Matching refs:queue

51   var queue = new Packet(null, ID_WORKER, KIND_WORK);
52 queue = new Packet(queue, ID_WORKER, KIND_WORK);
53 scheduler.addWorkerTask(ID_WORKER, 1000, queue);
55 queue = new Packet(null, ID_DEVICE_A, KIND_DEVICE);
56 queue = new Packet(queue, ID_DEVICE_A, KIND_DEVICE);
57 queue = new Packet(queue, ID_DEVICE_A, KIND_DEVICE);
58 scheduler.addHandlerTask(ID_HANDLER_A, 2000, queue);
60 queue = new Packet(null, ID_DEVICE_B, KIND_DEVICE);
61 queue = new Packet(queue, ID_DEVICE_B, KIND_DEVICE);
62 queue = new Packet(queue, ID_DEVICE_B, KIND_DEVICE);
63 scheduler.addHandlerTask(ID_HANDLER_B, 3000, queue);
126 Scheduler.prototype.addIdleTask = function (id, priority, queue, count) { argument
127 this.addRunningTask(id, priority, queue, new IdleTask(this, 1, count));
136 Scheduler.prototype.addWorkerTask = function (id, priority, queue) { argument
137 this.addTask(id, priority, queue, new WorkerTask(this, ID_HANDLER_A, 0));
146 Scheduler.prototype.addHandlerTask = function (id, priority, queue) { argument
147 this.addTask(id, priority, queue, new HandlerTask(this));
156 Scheduler.prototype.addDeviceTask = function (id, priority, queue) { argument
157 this.addTask(id, priority, queue, new DeviceTask(this))
167 Scheduler.prototype.addRunningTask = function (id, priority, queue, task) { argument
168 this.addTask(id, priority, queue, task);
179 Scheduler.prototype.addTask = function (id, priority, queue, task) { argument
180 this.currentTcb = new TaskControlBlock(this.list, id, priority, queue, task);
241 Scheduler.prototype.queue = function (packet) { method in Scheduler
260 function TaskControlBlock(link, id, priority, queue, task) { argument
264 this.queue = queue;
266 if (queue == null) {
327 packet = this.queue;
328 this.queue = packet.link;
329 if (this.queue == null) {
346 if (this.queue == null) {
347 this.queue = packet;
351 this.queue = packet.addTo(this.queue);
406 return this.scheduler.queue(v);
446 return this.scheduler.queue(packet);
482 return this.scheduler.queue(v);
487 return this.scheduler.queue(v);
527 Packet.prototype.addTo = function (queue) { argument
529 if (queue == null) return this;
530 var peek, next = queue;
534 return queue;