Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mutex_unlock(3synch) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mutex(3synch)

mutex_destroy(3synch)

mutex_init(3synch)

mutex_lock(3synch)

mutex_trylock(3synch)

synch(3synch)






       mutex_unlock(3synch)                            mutex_unlock(3synch)


       NAME
             mutex_unlock - unlock a mutex

       SYNOPSIS
             cc [options] -Kthread file
             #include <synch.h>
             int mutex_unlock(mutex_t *mutex);

          Parameters
             mutex  pointer to mutex to be unlocked

       DESCRIPTION
             mutex_unlock unlocks the mutex pointed to by mutex.

             If there are one or more threads waiting for the mutex when
             mutex_unlock is called, at least one waiting thread is allowed
             to try again to acquire the mutex.

          Return Values
             mutex_unlock returns zero for success and an error number for
             failure, as described below.

          Errors
             If any of the following conditions is detected, mutex_unlock
             returns the corresponding value:

             EINVAL   Invalid argument specified.

       USAGE
             Mutexes acquired with mutex_lock and mutex_trylock should be
             released with mutex_unlock.

       REFERENCES
             mutex(3synch), mutex_destroy(3synch), mutex_init(3synch),
             mutex_lock(3synch), mutex_trylock(3synch), synch(3synch)













                           Copyright 1994 Novell, Inc.               Page 1








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026