Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/rump/kernspace Include some non-critical-but-still-for...
details: https://anonhg.NetBSD.org/src/rev/c9e707f72853
branches: trunk
changeset: 995506:c9e707f72853
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Dec 25 21:26:31 2018 +0000
description:
Include some non-critical-but-still-for-correctness lines of code
in the cancellation unit test. (I could have sworn I actually typed
these lines, no really...)
diffstat:
tests/rump/kernspace/threadpool.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 037eaa587873 -r c9e707f72853 tests/rump/kernspace/threadpool.c
--- a/tests/rump/kernspace/threadpool.c Tue Dec 25 16:45:02 2018 +0000
+++ b/tests/rump/kernspace/threadpool.c Tue Dec 25 21:26:31 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: threadpool.c,v 1.1 2018/12/24 21:42:05 thorpej Exp $ */
+/* $NetBSD: threadpool.c,v 1.2 2018/12/25 21:26:31 thorpej Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: threadpool.c,v 1.1 2018/12/24 21:42:05 thorpej Exp $");
+__RCSID("$NetBSD: threadpool.c,v 1.2 2018/12/25 21:26:31 thorpej Exp $");
#endif /* !lint */
#include <sys/param.h>
@@ -231,4 +231,9 @@
/* Now wait for the job to finish. */
threadpool_cancel_job(pool, &data.job);
KASSERT(data.count == FINAL_COUNT);
+ mutex_exit(&data.mutex);
+
+ fini_test_job_data(&data);
+
+ threadpool_put(pool, PRI_NONE);
}
Home |
Main Index |
Thread Index |
Old Index