summaryrefslogtreecommitdiffstats
path: root/include/pthread_np.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-02-03 22:38:10 +0000
committerdes <des@FreeBSD.org>2008-02-03 22:38:10 +0000
commit72d185548f88b6924d5a926aa9b6877ebe113169 (patch)
tree79362381794d659312db4ce0c9cff22878c851bf /include/pthread_np.h
parentd645bec45a695d4bcad9263c30977af43db44b19 (diff)
downloadFreeBSD-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/pthread_np.h')
-rw-r--r--include/pthread_np.h1
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);
OpenPOWER on IntegriCloud