Lines Matching refs:priority
122 * @param {int} priority the task's priority
126 Scheduler.prototype.addIdleTask = function (id, priority, queue, count) {
127 this.addRunningTask(id, priority, queue, new IdleTask(this, 1, count));
133 * @param {int} priority the task's priority
136 Scheduler.prototype.addWorkerTask = function (id, priority, queue) {
137 this.addTask(id, priority, queue, new WorkerTask(this, ID_HANDLER_A, 0));
143 * @param {int} priority the task's priority
146 Scheduler.prototype.addHandlerTask = function (id, priority, queue) {
147 this.addTask(id, priority, queue, new HandlerTask(this));
153 * @param {int} priority the task's priority
156 Scheduler.prototype.addDeviceTask = function (id, priority, queue) {
157 this.addTask(id, priority, queue, new DeviceTask(this))
163 * @param {int} priority the task's priority
167 Scheduler.prototype.addRunningTask = function (id, priority, queue, task) {
168 this.addTask(id, priority, queue, task);
175 * @param {int} priority the task's priority
179 Scheduler.prototype.addTask = function (id, priority, queue, task) {
180 this.currentTcb = new TaskControlBlock(this.list, id, priority, queue, task);
208 if (tcb.priority > this.currentTcb.priority) {
255 * @param {int} priority the priority of this block
260 function TaskControlBlock(link, id, priority, queue, task) {
263 this.priority = priority;
343 * with the highest priority).
349 if (this.priority > task.priority) return this;