kern_synch.c (c008d51784fcf687ead08c048dc807ad09e5ee3c) kern_synch.c (0f180a7cce5bed801060557dd5bdbad64318d3c6)
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 181 unchanged lines hidden (view full) ---

190 */
191 sleepq_add(ident, mtx, wmesg, flags);
192 if (timo)
193 sleepq_set_timeout(ident, timo);
194
195 /*
196 * Adjust this thread's priority.
197 */
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 181 unchanged lines hidden (view full) ---

190 */
191 sleepq_add(ident, mtx, wmesg, flags);
192 if (timo)
193 sleepq_set_timeout(ident, timo);
194
195 /*
196 * Adjust this thread's priority.
197 */
198 mtx_lock_spin(&sched_lock);
199 sched_prio(td, priority & PRIMASK);
200 mtx_unlock_spin(&sched_lock);
198 if ((priority & PRIMASK) != 0) {
199 mtx_lock_spin(&sched_lock);
200 sched_prio(td, priority & PRIMASK);
201 mtx_unlock_spin(&sched_lock);
202 }
201
202 if (timo && catch)
203 rval = sleepq_timedwait_sig(ident);
204 else if (timo)
205 rval = sleepq_timedwait(ident);
206 else if (catch)
207 rval = sleepq_wait_sig(ident);
208 else {

--- 345 unchanged lines hidden ---
203
204 if (timo && catch)
205 rval = sleepq_timedwait_sig(ident);
206 else if (timo)
207 rval = sleepq_timedwait(ident);
208 else if (catch)
209 rval = sleepq_wait_sig(ident);
210 else {

--- 345 unchanged lines hidden ---