Function rdwrl_timedreq
Defined in File rdwrlock.h
Function Documentation
-
status_t rdwrl_timedreq(struct rdwrlock *const rdwr, enum rdwrlock_scope scope, const struct timespec *const to)
Request to enter a critical section with a timeout.
This function is part of a fair (i.e. no rd/wr preference) sequence that guarantees that no reader or write will starve.
- Parameters:
rdwr – The lock handle.
scope – The scope of the privileges requested.
to – A RELATIVE timeout, NOT an ABSOLUTE timeout, as the POSIX standard specifies. This function converts the relative timeout to absolute timeout required.
- Returns: