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

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

PTHREAD_MUTEX_UNLOCK(3)

Contents


NAME    [Toc]    [Back]

     pthread_mutex_unlock - unlock a mutex

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int
     pthread_mutex_unlock(pthread_mutex_t *mutex);

DESCRIPTION    [Toc]    [Back]

     If the current thread holds the lock on mutex, then the
     pthread_mutex_unlock() function unlocks mutex.

RETURN VALUES    [Toc]    [Back]

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

ERRORS    [Toc]    [Back]

     pthread_mutex_trylock() will fail if:

     [EINVAL]      The value specified by mutex is invalid.

     [EPERM]        The  current  thread  does not hold a lock on
mutex.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_mutex_destroy(3), pthread_mutex_init(3), pthread_mutex_lock(3),
     pthread_mutex_trylock(3)

STANDARDS    [Toc]    [Back]

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

OpenBSD     3.6                           July      30,      1998
[ Back ]
 Similar pages
Name OS Title
pthread_mutexattr_gettype Tru64 Obtains the mutex type attribute in the specified mutex attributes object
pthread_mutexattr_settype Tru64 Specifies the mutex type attribute that is used when a mutex is created
msem_unlock Tru64 Unlock a semaphore
msem_unlock HP-UX unlock a semaphore
sem_post OpenBSD increment (unlock) a semaphore
sem_post HP-UX unlock a POSIX semaphore
sem_post FreeBSD increment (unlock) a semaphore
pthread_rwlock_unlock Tru64 Unlock a read-write lock
mlock IRIX lock or unlock pages in memory
mlockall IRIX lock or unlock address space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service