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


tis_read_unlock

Unlocks a readers/writer lock that was acquired in read access mode.

Syntax

tis_read_unlock(
                lock );
 


Argument Data Type Access

lock opaque tis_rwlock_t write


C Binding

#include 

int tis_read_unlock ( tis_rwlock_t *lock);

Arguments

lock
Address of the readers/writer lock.

Description

This routine unlocks a readers/writer lock that was acquired in read access mode. If there are no other holders of the lock with read access mode and another thread is waiting to acquire the lock in write access mode, the lock will now be granted.

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 lock is invalid.


Associated Routines

   tis_read_lock
   tis_read_trylock
   tis_rwlock_destroy
   tis_rwlock_init
   tis_write_lock
   tis_write_trylock
   tis_write_unlock



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