Lines Matching defs:self
562 update_sched(ulwp_t *self)
571 ASSERT(self == curthread);
573 enter_critical(self);
575 if ((scp = self->ul_schedctl) == NULL &&
577 if (self->ul_policy < 0) {
578 self->ul_cid = 0;
579 self->ul_pri = 0;
581 self->ul_policy = SCHED_OTHER;
583 exit_critical(self);
587 if (self->ul_policy >= 0 &&
588 self->ul_cid == scp->sc_cid &&
589 (self->ul_pri == scp->sc_cpri ||
590 (self->ul_epri > 0 && self->ul_epri == scp->sc_cpri))) {
591 exit_critical(self);
597 self->ul_cid = scp->sc_cid;
598 self->ul_pri = scp->sc_cpri;
600 self->ul_policy = SCHED_OTHER;
601 exit_critical(self);
611 self->ul_rtclassid = pccp->pcc_info.pc_cid;
630 self->ul_cid = pcparm.pc_cid;
631 self->ul_pri = priority;
633 self->ul_policy = policy;
635 exit_critical(self);