PERFORCE change 65487 for review
David Xu
davidxu at FreeBSD.org
Fri Nov 19 18:15:56 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=65487
Change 65487 by davidxu at davidxu_alona on 2004/11/20 02:15:39
wakeup_one is an evil. it may wake wrong thread.
Affected files ...
.. //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#2 edit
Differences ...
==== //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#2 (text+ko) ====
@@ -295,7 +295,7 @@
mtx_lock_spin(&sched_lock);
ttd->td_flags |= TDF_THRWAKEUP;
mtx_unlock_spin(&sched_lock);
- wakeup_one((void *)ttd);
+ wakeup((void *)ttd);
PROC_UNLOCK(td->td_proc);
return (0);
}
More information about the p4-projects
mailing list