Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_mutex_destroy.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_mutex_destroy.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_mutex_destroy.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_mutex_destroy.html on line 8
Destroy a mutex
#include <pthread.h>
int pthread_mutex_destroy( pthread_mutex_t* mutex );
- mutex
- A pointer to the pthread_mutex_t object that you want to
destroy.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The pthread_mutex_destroy() function destroys the unlocked mutex
mutex.
You can destroy a locked mutex only if you're the owner
of that mutex.
|
Once you've destroyed a mutex, don't reuse it without reinitializing it by
calling
pthread_mutex_init(). |
- EOK
- Success.
- EBUSY
- The mutex is locked by another thread.
- EINVAL
- Invalid mutex mutex.
POSIX 1003.1 THR
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
pthread_mutex_init(),
SyncDestroy(),
SyncMutexRevive()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_mutex_destroy.html on line 142
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_mutex_destroy.html on line 142