[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


tis_mutex_unlock

Unlocks a mutex.

Syntax

tis_mutex_unlock(
                 mutex );
 


Argument Data Type Access

mutex opaque pthread_mutex_t read


C Binding

#include 

int tis_mutex_unlock ( pthread_mutex_t *mutex);

Arguments

mutex
Address of the mutex (passed by reference) which is to be unlocked.

Description

This routine unlocks a mutex.

For more information about actions when threads are present, refer to the pthread_mutex_unlock description.

Return Values

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. [EINVAL] The value specified by mutex is invalid. [EPERM] The caller does not own the mutex.


Associated Routines

   tis_mutex_destroy
   tis_mutex_init
   tis_mutex_lock
   tis_mutex_trylock



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]