Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1248 → Rev 1247

/kernel/trunk/generic/src/synch/rwlock.c
26,16 → 26,15
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/**
* @file rwlock.c
* @brief Reader/Writer locks.
/** Reader/Writer locks
*
* A reader/writer lock can be held by multiple readers at a time.
* Or it can be exclusively held by a sole writer at a time.
*
*/
 
/*
* These locks are not recursive.
* Because technique called direct hand-off is used, neither readers
* nor writers will suffer starvation.
* Neither readers nor writers will suffer starvation.
*
* If there is a writer followed by a reader waiting for the rwlock
* and the writer times out, all leading readers are automatically woken up
146,7 → 145,7
* @param trylock Switches between blocking and non-blocking mode.
*
* For exact description of possible combinations of
* usec and trylock, see comment for waitq_sleep_timeout().
* @usec and @trylock, see comment for waitq_sleep_timeout().
*
* @return See comment for waitq_sleep_timeout().
*/