Date: Tue, 11 Mar 2003 09:29:07 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 26688 for review Message-ID: <200303111729.h2BHT7dC059755@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=26688 Change 26688 by jhb@jhb_laptop on 2003/03/11 09:28:09 It's usually a good idea to init cv's before you use them and to destory them when you are done with them. Affected files ... .. //depot/projects/smpng/sys/modules/evtest/evtest.c#12 edit Differences ... ==== //depot/projects/smpng/sys/modules/evtest/evtest.c#12 (text+ko) ==== @@ -377,6 +377,7 @@ cv_destroy(&broadcast_cv); sema_destroy(&evtest_sema); mtx_destroy(&event_mtx); + cv_destroy(&event_recvd); cv_destroy(&event_cv); } @@ -389,6 +390,7 @@ broadcast_count = 0; mtx_init(&event_mtx, "evtest event", NULL, MTX_DEF); cv_init(&event_cv, "evtest"); + cv_init(&event_recvd, "evrcvd"); sema_init(&evtest_sema, 1, "evtest semaphore"); cv_init(&broadcast_cv, "evbcast"); error = thread_create(0, "event thread 0"); 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?200303111729.h2BHT7dC059755>