destroy a mutex
cc [options] -Kthread file
int mutex_destroy(mutex_t *mutex);
mutex_destroy destroys the mutex pointed to by mutex.
This includes invalidating the mutex and freeing any
associated implementation-allocated dynamic resources.
Any user-allocated dynamic storage is unaffected by mutex_destroy
and must be explicitly released by the program.
pointer to mutex to be destroyed
mutex_destroy returns zero for success
and an error number for failure.
If any of the following conditions is detected,
mutex_destroy returns the corresponding value:
mutex locked or another thread waiting to acquire mutex
invalid argument specified
the mutex denoted by mutex already destroyed
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004