diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-30 20:44:24 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-30 20:44:24 +0100 |
commit | 9967e907feda967f237c30430f47357bc91332f5 (patch) | |
tree | afad99fa69ba8cd0aa38c7bc695667520805d4c5 /kern/work.h | |
parent | bc6e853d4b27055056eebfd871aaf0fc60405b0f (diff) |
Fix condition variable broadcasting
The broadcast implementation is based on an invalid assumption, namely
that the first mutex_unlock call following condition_wait would be invoked
on the same mutex. Fixing this while guarding against the thundering herd
effect requires augmenting mutexes with a pointer to the condition
variable they may be associated with. Since the size of mutexes is
currently more important than broadcast scalability, the implementation
is simplified into one which suffers from the thundering herd effect.
Diffstat (limited to 'kern/work.h')
0 files changed, 0 insertions, 0 deletions