rwmtx_wrlock(3)		   Library Functions Manual	       rwmtx_wrlock(3)

NAME
     rwmtx_wrlock – acquire a write lock

SYNOPSIS
     library “threads”
     #include <threadse.h>

     int
     rwmtx_wrlock(rwmtx_t *rw);

DESCRIPTION
     The function rwmtx_wrlock() will acquire a write lock on the given
     read/write lock rw.  If a read lock is acquired on the lock, the thread
     will be stalled until the write lock can be acquired.

RETURN VALUES
     Upon success rwmtx_wrlock() will return thrd_success.  In case of error
     thrd_error will be returned.

SEE ALSO
     rwmtx_init(3) rwmtx_destroy(3) rwmtx_rdlock(3) rwmtx_trywrlock(3)
     rwmtx_trywrlock(3) rwmtx_timedwrlock(3) rwmtx_timedwrlock(3)
     rwmtx_unlock(3)

HISTORY
     The rwmtx_wrlock() function first appeared in the Adelsbach Enhanced
     Threading Library.

AUTHORS
     Jan Adelsbach <jan@jadelsbach.de>

Linux 6.13.6-1-default		  May 9, 2020		Linux 6.13.6-1-default