Module Name: src Committed By: thorpej Date: Wed Dec 26 21:18:51 UTC 2018
Modified Files: src/sys/kern: kern_threadpool.c Log Message: Stylistic tweak to previous. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/kern/kern_threadpool.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_threadpool.c diff -u src/sys/kern/kern_threadpool.c:1.7 src/sys/kern/kern_threadpool.c:1.8 --- src/sys/kern/kern_threadpool.c:1.7 Wed Dec 26 21:15:50 2018 +++ src/sys/kern/kern_threadpool.c Wed Dec 26 21:18:51 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_threadpool.c,v 1.7 2018/12/26 21:15:50 thorpej Exp $ */ +/* $NetBSD: kern_threadpool.c,v 1.8 2018/12/26 21:18:51 thorpej Exp $ */ /*- * Copyright (c) 2014, 2018 The NetBSD Foundation, Inc. @@ -81,7 +81,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_threadpool.c,v 1.7 2018/12/26 21:15:50 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_threadpool.c,v 1.8 2018/12/26 21:18:51 thorpej Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -361,8 +361,7 @@ threadpool_rele(struct threadpool *pool) KASSERT(mutex_owned(&pool->tp_lock)); KASSERT(0 < pool->tp_refcnt); - pool->tp_refcnt--; - if (pool->tp_refcnt == 0) + if (--pool->tp_refcnt == 0) cv_broadcast(&pool->tp_overseer.tpt_cv); }