*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> tis_mutex_destroy (3)              
Title
Content
Arch
Section
 

tis_mutex_destroy(3)

Contents


NAME    [Toc]    [Back]

       tis_mutex_destroy - Destroys the specified mutex object

SYNOPSIS    [Toc]    [Back]

       #include <tis.h>

       int tis_mutex_destroy(
               pthread_mutex_t *mutex );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc.so, libc.a)

STANDARDS    [Toc]    [Back]

       None

PARAMETERS    [Toc]    [Back]

       Address  of  the  mutex object (passed by reference) to be
       destroyed.

DESCRIPTION    [Toc]    [Back]

       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,  DECthreads  can
       reclaim internal storage used by the mutex object.

       It  is  safe  to  destroy  an  initialized  mutex  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 does not  currently
       exist, or is not initialized.

RETURN VALUES    [Toc]    [Back]

       If  an  error  condition  occurs,  this routine returns an
       integer value  indicating  the  type  of  error.  Possible
       return  values  are as follows: Successful completion.  An
       attempt was made to destroy the object referenced by mutex
       while  it is locked or referenced.  The value specified by
       mutex is invalid.  The caller does not have privileges  to
       perform the operation.

ERRORS    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Functions:      tis_mutex_init(3),      tis_mutex_lock(3),
       tis_mutex_trylock(3), tis_mutex_unlock(3)

       Manuals: Guide to DECthreads and Programmer's Guide



                                             tis_mutex_destroy(3)
[ Back ]
 Similar pages
Name OS Title
pthread_mutexattr_destroy Tru64 Destroys the specified mutex attributes object
pthread_mutex_destroy Tru64 Destroys a mutex
pthread_mutexattr_gettype Tru64 Obtains the mutex type attribute in the specified mutex attributes object
pthread_attr_destroy Tru64 Destroys a thread attributes object
pthread_rwlock_destroy Tru64 Destroys a read-write lock object
tis_rwlock_destroy Tru64 Destroys the specified read-write lock object
pthread_condattr_destroy Tru64 Destroys a condition variable attributes object
pthread_mutex_getname_np Tru64 Obtain the object name from a mutex object
tis_mutex_init Tru64 Initializes a mutex object
pthread_mutexattr_init Tru64 Initializes a mutex attributes object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service