Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/include Add _mutex_held routine to test ...
details: https://anonhg.NetBSD.org/src/rev/a9d0dbe523de
branches: trunk
changeset: 754522:a9d0dbe523de
user: haad <haad%NetBSD.org@localhost>
date: Mon May 03 00:31:32 2010 +0000
description:
Add _mutex_held routine to test if mutex_t * is held.
diffstat:
external/cddl/osnet/include/thread.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 5a3f22bbb973 -r a9d0dbe523de external/cddl/osnet/include/thread.h
--- a/external/cddl/osnet/include/thread.h Sun May 02 23:59:54 2010 +0000
+++ b/external/cddl/osnet/include/thread.h Mon May 03 00:31:32 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thread.h,v 1.1 2009/08/07 20:57:55 haad Exp $ */
+/* $NetBSD: thread.h,v 1.2 2010/05/03 00:31:32 haad Exp $ */
/*
* CDDL HEADER START
@@ -52,6 +52,7 @@
#define thr_main() (1)
#define _mutex_init(l,f,a) pthread_mutex_init(l,NULL)
#define _mutex_destroy(l) pthread_mutex_destroy(l)
+#define _mutex_held(l) pthread_mutex_held_np(l)
#define mutex_lock(l) pthread_mutex_lock(l)
#define mutex_trylock(l) pthread_mutex_trylock(l)
#define mutex_unlock(l) pthread_mutex_unlock(l)
Home |
Main Index |
Thread Index |
Old Index