Lines Matching refs:ulwp
51 ulwp_t *ulwp;
55 if ((ulwp = find_lwp(tid)) == NULL) {
58 if (policy == ulwp->ul_policy &&
60 ulwp->ul_epri != 0) {
65 if (prio > ulwp->ul_epri)
68 ulwp->ul_pri = prio;
73 ulwp->ul_rtclassid = cid;
74 ulwp->ul_cid = cid;
75 ulwp->ul_pri = prio;
77 ulwp->ul_policy = policy;
79 ulwp_unlock(ulwp, curthread->ul_uberdata);
132 ulwp_t *ulwp = find_lwp(tid);
133 if (ulwp->ul_detached == 0) {
134 ulwp->ul_detached = 1;
135 ulwp->ul_usropts |= THR_DETACHED;
138 ulwp->ul_cancel_pending = 2; /* cancelled on creation */
139 ulwp->ul_cancel_disabled = 0;
140 ulwp_unlock(ulwp, self->ul_uberdata);
197 ulwp_t *ulwp;
201 if ((ulwp = find_lwp(tid)) == NULL) {
204 cid = getparam(P_LWPID, ulwp->ul_lwpid, policy, param);
207 } else if (*policy == ulwp->ul_policy && cid == ulwp->ul_cid &&
213 param->sched_priority = ulwp->ul_pri;
216 ulwp->ul_rtclassid = cid;
217 ulwp->ul_cid = cid;
218 ulwp->ul_pri = param->sched_priority;
220 ulwp->ul_policy = *policy;
222 ulwp_unlock(ulwp, curthread->ul_uberdata);