Module Name: src
Committed By: haad
Date: Mon May 3 00:31:32 UTC 2010
Modified Files:
src/external/cddl/osnet/include: thread.h
Log Message:
Add _mutex_held routine to test if mutex_t * is held.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/include/thread.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/include/thread.h
diff -u src/external/cddl/osnet/include/thread.h:1.1 src/external/cddl/osnet/include/thread.h:1.2
--- src/external/cddl/osnet/include/thread.h:1.1 Fri Aug 7 20:57:55 2009
+++ src/external/cddl/osnet/include/thread.h Mon May 3 00:31:32 2010
@@ -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)