diff options
author | des <des@FreeBSD.org> | 2008-02-03 22:38:10 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-02-03 22:38:10 +0000 |
commit | 72d185548f88b6924d5a926aa9b6877ebe113169 (patch) | |
tree | 79362381794d659312db4ce0c9cff22878c851bf /include | |
parent | d645bec45a695d4bcad9263c30977af43db44b19 (diff) | |
download | FreeBSD-src-72d185548f88b6924d5a926aa9b6877ebe113169.zip FreeBSD-src-72d185548f88b6924d5a926aa9b6877ebe113169.tar.gz |
Add pthread_mutex_islocked_np(), a cheap way to verify that a mutex is
locked. This is intended primarily to support the userland equivalent
of the various *_ASSERT_LOCKED() macros we have in the kernel.
MFC after: 2 weeks
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread_np.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pthread_np.h b/include/pthread_np.h index fdd4970..06b2f5f 100644 --- a/include/pthread_np.h +++ b/include/pthread_np.h @@ -53,6 +53,7 @@ int pthread_mutex_getspinloops_np(pthread_mutex_t *mutex, int *count); int pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count); int pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count); int pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count); +int pthread_mutex_islocked_np(pthread_mutex_t *mutex); int pthread_single_np(void); void pthread_suspend_all_np(void); int pthread_suspend_np(pthread_t); |