Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1757
Line 36... Line 36...
36
 *
36
 *
37
 * A reader/writer lock can be held by multiple readers at a time.
37
 * A reader/writer lock can be held by multiple readers at a time.
38
 * Or it can be exclusively held by a sole writer at a time.
38
 * Or it can be exclusively held by a sole writer at a time.
39
 *
39
 *
40
 * These locks are not recursive.
40
 * These locks are not recursive.
41
 * Because technique called direct hand-off is used, neither readers
41
 * Because a technique called direct hand-off is used and because
-
 
42
 * waiting takes place in a single wait queue, neither readers
42
 * nor writers will suffer starvation.
43
 * nor writers will suffer starvation.
43
 *
44
 *
44
 * If there is a writer followed by a reader waiting for the rwlock
45
 * If there is a writer followed by a reader waiting for the rwlock
45
 * and the writer times out, all leading readers are automatically woken up
46
 * and the writer times out, all leading readers are automatically woken up
46
 * and allowed in.
47
 * and allowed in.
Line 384... Line 385...
384
    spinlock_unlock((spinlock_t *) arg);
385
    spinlock_unlock((spinlock_t *) arg);
385
}
386
}
386
 
387
 
387
 /** @}
388
/** @}
388
 */
389
 */
389
 
-