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


tis_write_lock

Acquires a readers/writer lock in write access mode.

Syntax

tis_write_lock(
               lock );
 


Argument Data Type Access

lock opaque tis_rwlock_t write


C Binding

#include 

int tis_rwlock ( tis_rwlock_t *lock);

Arguments

lock
Address of the readers/writer lock.

Description

This routine acquires a readers/writer lock in write access mode. This routine waits for any other active locks (in either read access or write access mode) to become unlocked before the lock request is granted. The routine returns when the readers/writer lock is established.

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_read_unlock
   tis_rwlock_destroy
   tis_rwlock_init
   tis_write_trylock
   tis_write_unlock



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