123456789101112131415161718192021222324252627282930313233343536373839 |
- #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)
|