Using Read-Write Locks
After the attributes for a read-write lock are configured, you initialize
the read-write lock. The following functions are used to initialize or destroy,
lock or unlock, or try to lock a read-write lock. The following table lists
the functions discussed in this section that manipulate read-write locks.
Table 4-8 Routines that Manipulate Read-Write
Locks
| |
Initialize a read-write lock
|
|
Read lock on read-write lock
|
|
Read lock with a nonblocking read-write lock
|
|
Write lock on read-write lock
|
|
Write lock with a nonblocking read-write lock
|
|
Unlock a read-write lock
|
|
Destroy a read-write lock
|
|
|