DescriptionFix a logical race when adding an awakable to a wait set.
If the wait set is being woken on one thread and have an awakable added
on another (i.e. during MojoWait on the wait set), it is possible for
the awakable to be added after checking the signals state, but before
adding to the awakables list. In this case, the added awakable won't get
woken up. The fix is to ensure that checking the signals state and
adding to the awakables list is an atomic operation.
Committed: https://crrev.com/e388b5966b6a02215e744269b7add8e7e36a6a0c
Cr-Commit-Position: refs/heads/master@{#376089}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|