PERFORCE change 38945 for review
Warner Losh
imp at FreeBSD.org
Tue Sep 30 21:26:20 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=38945
Change 38945 by imp at imp_koguchi on 2003/09/30 21:26:14
unlock -- per rwatson
Affected files ...
.. //depot/doc/strawman-driver.c#7 edit
Differences ...
==== //depot/doc/strawman-driver.c#7 (text+ko) ====
@@ -32,9 +32,11 @@
mtx_lock(&sc->mtx);
sc->sc_gerbil = 0;
while (!sc->sc_gerbil) {
- if (sc->dead) /* Race #1, b */
+ cv_wait(&sc->cv, &sc->mtx);
+ if (sc->dead) { /* Race #1, b */
+ mtx_unlock(&sc->mtx);
return EGONE;
- cv_wait(&sc->cv, &sc->mtx);
+ }
}
mtx_unlock(&sc->mtx);
return (0);
More information about the p4-releng
mailing list