Home | History | Annotate | Download | only in v8-v4

Lines Matching refs:packet

46   var queue = new Packet(null, ID_WORKER, KIND_WORK);
47 queue = new Packet(queue, ID_WORKER, KIND_WORK);
50 queue = new Packet(null, ID_DEVICE_A, KIND_DEVICE);
51 queue = new Packet(queue, ID_DEVICE_A, KIND_DEVICE);
52 queue = new Packet(queue, ID_DEVICE_A, KIND_DEVICE);
55 queue = new Packet(null, ID_DEVICE_B, KIND_DEVICE);
56 queue = new Packet(queue, ID_DEVICE_B, KIND_DEVICE);
57 queue = new Packet(queue, ID_DEVICE_B, KIND_DEVICE);
78 * These two constants specify how many times a packet is queued and
118 * @param {Packet} queue the queue of work to be processed by the task
129 * @param {Packet} queue the queue of work to be processed by the task
139 * @param {Packet} queue the queue of work to be processed by the task
149 * @param {Packet} queue the queue of work to be processed by the task
159 * @param {Packet} queue the queue of work to be processed by the task
171 * @param {Packet} queue the queue of work to be processed by the task
231 * Add the specified packet to the end of the worklist used by the task
232 * associated with the packet and make the task runnable if it is currently
234 * @param {Packet} packet the packet to add
236 Scheduler.prototype.queue = function (packet) {
237 var t = this.blocks[packet.id];
240 packet.link = null;
241 packet.id = this.currentId;
242 return t.checkPriorityAdd(this.currentTcb, packet);
251 * @param {Packet} queue the queue of packages to be processed by the task
320 var packet;
322 packet = this.queue;
323 this.queue = packet.link;
330 packet = null;
332 return this.task.run(packet);
336 * Adds a packet to the worklist of this block's task, marks this as runnable if
340 TaskControlBlock.prototype.checkPriorityAdd = function (task, packet) {
342 this.queue = packet;
346 this.queue = packet.addTo(this.queue);
369 IdleTask.prototype.run = function (packet) {
396 DeviceTask.prototype.run = function (packet) {
397 if (packet == null) {
403 this.v1 = packet;
425 WorkerTask.prototype.run = function (packet) {
426 if (packet == null) {
434 packet.id = this.v1;
435 packet.a1 = 0;
439 packet.a2[i] = this.v2;
441 return this.scheduler.queue(packet);
460 HandlerTask.prototype.run = function (packet) {
461 if (packet != null) {
462 if (packet.kind == KIND_WORK) {
463 this.v1 = packet.addTo(this.v1);
465 this.v2 = packet.addTo(this.v2);
500 * of the payload data carried by a packet is not importaint, and neither is the
505 * @param {Packet} link the tail of the linked list of packets
506 * @param {int} id an ID for this packet
507 * @param {int} kind the type of this packet
510 function Packet(link, id, kind) {
519 * Add this packet to the end of a worklist, and return the worklist.
520 * @param {Packet} queue the worklist to add this packet to
522 Packet.prototype.addTo = function (queue) {
532 Packet.prototype.toString = function () {
533 return "Packet";