Date: Mon, 10 Mar 2003 15:16:21 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 26646 for review Message-ID: <200303102316.h2ANGLRg057898@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=26646 Change 26646 by jhb@jhb_laptop on 2003/03/10 15:15:52 Fix thread death case (I think). Affected files ... .. //depot/projects/smpng/sys/modules/evtest/evtest.c#8 edit Differences ... ==== //depot/projects/smpng/sys/modules/evtest/evtest.c#8 (text+ko) ==== @@ -255,6 +255,11 @@ /* Handle broadcast events. */ switch (*td_ev) { case -1: + mtx_lock(&event_mtx); + broadcast_count--; + if (broadcast_count == 0) + cv_broadcast(&broadcast_cv); + mtx_unlock(&event_mtx); printf("%s: thread %d dying\n", __func__, evtest_lookupthread()); mtx_lock(&Giant); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303102316.h2ANGLRg057898>