summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-10-16 09:48:09 +0000
committerjeff <jeff@FreeBSD.org>2003-10-16 09:48:09 +0000
commitf21d0fada627381a1d50befb8828673b5cd9abf2 (patch)
treec01d6f14afa31da369013904d9612418a2ea187d /sys
parent72e3738dce4fcae6cd5c000ef84c0a11ad0594e2 (diff)
downloadFreeBSD-src-f21d0fada627381a1d50befb8828673b5cd9abf2.zip
FreeBSD-src-f21d0fada627381a1d50befb8828673b5cd9abf2.tar.gz
- mtx_ownedby() was unpopular and is no longer needed. Remove it.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/mutex.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index 3e9d236..9601fd7 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -228,8 +228,6 @@ void _mtx_assert(struct mtx *m, int what, const char *file, int line);
*
* mtx_owned(m) returns non-zero if the current thread owns the lock `m'
*
- * mtx_ownedby(m, td) returns non-zero if the specified thread owns the lock `m'
- *
* mtx_recursed(m) returns non-zero if the lock `m' is presently recursed.
*/
#define mtx_lock(m) mtx_lock_flags((m), 0)
@@ -295,10 +293,7 @@ extern struct mtx_pool *mtxpool_sleep;
#define mtx_initialized(m) ((m)->mtx_object.lo_flags & LO_INITIALIZED)
-#define mtx_owned(m) (mtx_ownedby((m), curthread))
-
-#define mtx_ownedby(m, td) \
- (((m)->mtx_lock & MTX_FLAGMASK) == (uintptr_t)(td))
+#define mtx_owned(m) (((m)->mtx_lock & MTX_FLAGMASK) == (uintptr_t)curthread)
#define mtx_recursed(m) ((m)->mtx_recurse != 0)
OpenPOWER on IntegriCloud