P99

◆ p99_rwl_wrlock()

int p99_rwl_wrlock ( p99_rwl volatile *  p00_r)
related

establish an exclusive lock for rwlock p00_r.

This will inhibit anybody else, this thread including, to take a lock on p00_r.

Remarks
blocks until the lock can be achieved
Returns
0

Definition at line 157 of file p99_rwl.h.

References p99_futex::P99_FUTEX_COMPARE_EXCHANGE.