rwmtx_trywrlock(3) Library Functions Manual rwmtx_trywrlock(3) NAME rwmtx_trywrlock – attempt to acquire a write lock SYNOPSIS library “threads” #include int rwmtx_trywrlock(rwmtx_t *rw); DESCRIPTION The function rwmtx_trywrlock() will attempt to acquire a write lock on the given read/write lock rw. If a write lock cannot be acquired the function will return a respective return code. RETURN VALUES Upon success rwmtx_trywrlock() will return thrd_success if a write lock has been acquired. If no write lock can be acquired at this time thrd_busy will be returned. In case of error thrd_error will be returned. SEE ALSO rwmtx_init(3) rwmtx_destroy(3) rwmtx_rdlock(3) rwmtx_wrlock(3) rwmtx_tryrdlock(3) rwmtx_timedrdlock(3) rwmtx_timedwrlock(3) rwmtx_unlock(3) HISTORY The rwmtx_trywrlock() function first appeared in the Adelsbach Enhanced Threading Library. AUTHORS Jan Adelsbach Debian May 9, 2020 Debian