1234567891011121314151617181920212223242526272829303132333435363738 |
- #include <errno.h>
- #include "pthreadP.h"
- int
- attribute_protected
- __pthread_mutex_destroy (
- pthread_mutex_t *mutex)
- {
- if ((mutex->__data.__kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0
- && mutex->__data.__nusers != 0)
- return EBUSY;
-
- mutex->__data.__kind = -1;
- return 0;
- }
- strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy)
- INTDEF(__pthread_mutex_destroy)
|