VMS Help
POSIX Threads, TIS routines, tis_mutex_destroy
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Destroys the specified mutex object.
#include <tis.h>
int
tis_mutex_destroy (
pthread_mutex_t *mutex);
mutex
Address of the mutex object (passed by reference) to be
destroyed.
This routine destroys a mutex object by uninitializing it, and
should be called when a mutex object is no longer referenced.
After this routine is called, the Threads Library can reclaim
internal storage used by the mutex object.
It is safe to destroy an initialized mutex object that is
unlocked. However, it is illegal to destroy a locked mutex
object.
The results of this routine are unpredictable if the mutex object
specified in the mutex argument either does not currently exist
or is not initialized.
If an error condition occurs, this routine returns an integer
value indicating the type of error. Possible return values are as
follows:
Return Description
0 Successful completion.
[EBUSY] An attempt was made to destroy the object referenced
by mutex while it is locked or referenced.
[EINVAL] The value specified by mutex is not a valid mutex.
[EPERM] The caller does not have privileges to perform the
operation.
tis_mutex_init()
tis_mutex_lock()
tis_mutex_trylock()
tis_mutex_unlock()
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.