P99

◆ p99_rwl_rdlock()

int p99_rwl_rdlock ( p99_rwl volatile *  p00_r)
related

establish a shared lock for rwlock p00_c.

This will inhibit to take an exclusive lock for anybody.

Remarks
blocks until the lock can be achieved or until an error is detected.
Returns
EAGAIN if there are already too many lockers, 0 in all other cases

Definition at line 122 of file p99_rwl.h.

References p99_futex::P99_FUTEX_COMPARE_EXCHANGE.