-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race in send/recv (continue)
The previous commit f31c466 was not complete, as the tests failed. I had to rewrite the way we perform `send` to make it safe again. The issue this time was mainly caused by inconsistent update of the `lap` variable. the writer, will update the `lap`, and then it will start writing the node, the reader can slip in the middle of these 2 events, and get an incorrect lap value.
- Loading branch information
Showing
2 changed files
with
88 additions
and
66 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