List Info

Thread: Re: cvs commit: src/include pthread_np.h src/lib/libthr pthread.map src/lib/libthr/thread thr_mutex.




Re: cvs commit: src/include pthread_np.h src/lib/libthr pthread.map src/lib/libthr/thread thr_mutex.
country flaguser name
United Kingdom
2008-02-07 13:50:39
>   Log:
>   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.

For what it's worth, NetBSD has the below. I found the names
in FreeBSD
perforce using Google and used them in the hope of being
compatible. 
I didn't find equivalents in other systems when I looked.

int     pthread_mutex_held_np(pthread_mutex_t *);
int     pthread_rwlock_held_np(pthread_rwlock_t *);
int     pthread_rwlock_wrheld_np(pthread_rwlock_t *);
int     pthread_rwlock_rdheld_np(pthread_rwlock_t *);

Andrew
_______________________________________________
freebsd-threadsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threa
ds
To unsubscribe, send any mail to
"freebsd-threads-unsubscribefreebsd.org"

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )