Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Stylistic tweak to previous.
details: https://anonhg.NetBSD.org/src/rev/d8ade5e5ca67
branches: trunk
changeset: 446960:d8ade5e5ca67
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Dec 26 21:18:51 2018 +0000
description:
Stylistic tweak to previous.
diffstat:
sys/kern/kern_threadpool.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r bc8a63197f6c -r d8ade5e5ca67 sys/kern/kern_threadpool.c
--- a/sys/kern/kern_threadpool.c Wed Dec 26 21:15:50 2018 +0000
+++ b/sys/kern/kern_threadpool.c Wed Dec 26 21:18:51 2018 +0000
@@ -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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index