Return to kern_mutex.c CVS log | Up to [cvs.NetBSD.org] / src / sys / kern |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.34, 2008/04/11 15:28:34 | version 1.35, 2008/04/22 14:46:35 | ||
---|---|---|---|
|
|
||
mutex_owned(kmutex_t *mtx) | mutex_owned(kmutex_t *mtx) | ||
{ | { | ||
if (mtx == NULL) | |||
return 0; | |||
if (MUTEX_ADAPTIVE_P(mtx)) | if (MUTEX_ADAPTIVE_P(mtx)) | ||
return MUTEX_OWNER(mtx->mtx_owner) == (uintptr_t)curlwp; | return MUTEX_OWNER(mtx->mtx_owner) == (uintptr_t)curlwp; | ||
#ifdef FULL | #ifdef FULL |