Unlocks a readers/writer lock.
Syntax
tis_write_unlock(
lock );
Argument Data Type Access
lock opaque tis_rwlock_t write
C Binding
#include
int
tis_write_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 write access mode. Upon completion of this routine, any thread
waiting to acquire the lock in read access mode will have the locks
granted. If no threads are waiting to acquire the lock in read
access mode, then a thread waiting to acquire it in write access
mode will have the lock granted.
Return Values
If an error condition occurs, this routine returns an integer value
indicating the type 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_read_unlock
tis_rwlock_init
tis_rwlock_destroy
tis_write_lock
tis_write_trylock