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

  man pages->OpenBSD man pages -> pthread_mutex_destroy (3)              
Title
Content
Arch
Section
 

TEX_DESTROY(3)

Contents


PTHREAD_MU

NAME    [Toc]    [Back]

     pthread_mutex_destroy - free resources allocated for a mutex

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int
     pthread_mutex_destroy(pthread_mutex_t *mutex);

DESCRIPTION    [Toc]    [Back]

     The pthread_mutex_destroy() function frees the resources allocated for
     mutex.

RETURN VALUES    [Toc]    [Back]

     If successful,  pthread_mutex_destroy()  will  return  zero,
otherwise an error
 number will be returned to indicate the error.

ERRORS    [Toc]    [Back]

     pthread_mutex_destroy() will fail if:

     [EINVAL]      The value specified by mutex is invalid.

     [EBUSY]       mutex is locked by another thread.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_mutex_init(3),   pthread_mutex_lock(3),  pthread_mutex_trylock(3),
     pthread_mutex_unlock(3)

STANDARDS    [Toc]    [Back]

     pthread_mutex_destroy()  conforms  to  ISO/IEC   9945-1:1996
(``POSIX'').

OpenBSD      3.6                           July      29,     1998
[ Back ]
 Similar pages
Name OS Title
cfree FreeBSD free up allocated memory
SSL_free Tru64 Free an allocated SSL structure
SSL_free OpenBSD free an allocated SSL structure
SSL_free NetBSD free an allocated SSL structure
mint_free IRIX free allocated memory
acl_free IRIX free allocated memory
mac_free IRIX free allocated memory
msen_free IRIX free allocated memory
cap_free IRIX free allocated capability
SSL_CTX_free NetBSD free an allocated SSL_CTX object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service