forked from idris-lang/Idris2
-
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.
[ base ] Add atomically function (idris-lang#3380)
* Adding initial implementation of atomicModifyIORef in Data.IORef. * Updating chez003 test (IORefs) to add atomicModifyIORef. * Updating CHANGELOG_NEXT.md. * Fixing linting in libs/base/Data/IORef.idr. * Fixing expected and tests/chez/chez003/IORef.idr to more appropriately test atomicModifyIORef functionality. * Add documentation for libs/base/Data/IORef.idr. * Clean up atomicModifyIORef in libs/base/Data/IORef.idr. * Updating atomicModifyIORef implementation to drop codegen check, let client decide this. Also update test to ensure enough contention to test for true atomicity (thanks to @stefan-hoeck for help with both of these). * Remove documentation regarding backends other than chez. * Update libs/base/Data/IORef.idr Co-authored-by: G. Allais <[email protected]> * Updating CHANGELOG_NEXT.md with new function name, atomically, and updating tests/chez/chez003/IORef.idr to reflect new function. * Fix linting for libs/base/Data/IORef.idr. * Update documentation for modifyIORef in libs/base/Data/IORef.idr. --------- Co-authored-by: G. Allais <[email protected]>
- Loading branch information
1 parent
7cbe95b
commit 53f448c
Showing
4 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
94 | ||
188 | ||
188 | ||
0 | ||
1010000 |