-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Wait/Notify opcode, the waiters hashmap is now on the Memory itse…
…lf (#3723) * Fix Wait/Notify opcode, the waiters hashmap is now on the Memory itself * Refactored for clarity * Use WAIT_ERROR everywhere * Change from WAIT_ERROR to Option * Added some unit test for threadconditions * Switch from `Mutex<HashMap<...>>` to `DashMap<...>` for the NotifyMap * Use FnvHasher for Dashmap * Change timeout value in unit test to leave more margin to the system to react. * Consolidate code, avoid duplication * Put test in a test module * Use an Result with custom error instead of an option for waiter
- Loading branch information
Showing
6 changed files
with
346 additions
and
124 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.