Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add mutex_owner_running().



details:   https://anonhg.NetBSD.org/src/rev/beafd60d2a96
branches:  trunk
changeset: 466052:beafd60d2a96
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Dec 09 21:08:56 2019 +0000

description:
Add mutex_owner_running().

diffstat:

 sys/sys/mutex.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 0415e349e282 -r beafd60d2a96 sys/sys/mutex.h
--- a/sys/sys/mutex.h   Mon Dec 09 21:05:23 2019 +0000
+++ b/sys/sys/mutex.h   Mon Dec 09 21:08:56 2019 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: mutex.h,v 1.23 2019/11/30 15:34:07 riastradh Exp $     */
+/*     $NetBSD: mutex.h,v 1.24 2019/12/09 21:08:56 ad Exp $    */
 
 /*-
- * Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
+ * Copyright (c) 2002, 2006, 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -199,6 +199,7 @@
 int    mutex_owned(const kmutex_t *);
 int    mutex_ownable(const kmutex_t *);
 lwp_t  *mutex_owner(const kmutex_t *);
+bool   mutex_owner_running(const kmutex_t *);
 
 void   mutex_obj_init(void);
 kmutex_t *mutex_obj_alloc(kmutex_type_t, int);



Home | Main Index | Thread Index | Old Index