diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2003-10-16 09:48:09 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2003-10-16 09:48:09 +0000 |
| commit | c16ec48bfb8c6adcecb0c34ac177a78b423b0876 (patch) | |
| tree | c01d6f14afa31da369013904d9612418a2ea187d | |
| parent | 5f16902f7eb45cca5ebba27fe85423023fd2b40e (diff) | |
Notes
| -rw-r--r-- | sys/sys/mutex.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 3e9d2368e2e67..9601fd7f75507 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) |
