You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The notify() function contains two optimizations:
- If the `inner` field is not yet initialized (i.e. no listeners have been
created yet), it returns `0` from the function early.
- If the atomic `notified` field indicates that the current notification would
do nothing, it returns `0` early as well.
`loom` testing has exposed race conditions in these optimizations that can cause
notifications to be missed, leading to deadlocks. This commit removes these
optimizations in the hope of preventing these deadlocks. Ideally we can restore
them in the future.
Closes#138
cc #130 and #133
Signed-off-by: John Nunley <[email protected]>
0 commit comments