-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mpsc): ensure un-received messages are dropped (#29)
This also adds loom leak checking tests. I also made `WaitQueue::close` into an RMW op to work around `loom` not modeling `SeqCst` properly. Signed-off-by: Eliza Weisman <[email protected]> * fix(mpsc): ensure un-received messages are dropped Signed-off-by: Eliza Weisman <[email protected]> * fix(mpsc): make `WaitQueue::close` an RMW I *think* this only fails loom because it doesn't fully model SeqCst, correctly...but making this a swap rather than a store ensures it's an RMW op, which appears to fix the loom test where the close was missed by a sender... Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information
Showing
9 changed files
with
261 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.