-
Notifications
You must be signed in to change notification settings - Fork 391
Add shims for RwLock::try_read/RwLock::try_write #1157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
46679bc
Add shims for RwLock::try_read/RwLock::try_write
divergentdave 88f319f
Add failing tests for mutex and rwlock
divergentdave c2683da
Clean up test case
divergentdave dd9896b
Implement mutex and rwlock functions
divergentdave 765050f
Revise mutex/rwlock memory layout for macOS compat
divergentdave dca83d7
Add test that exercises ReentrantMutex
divergentdave c773ca8
Style fixes
divergentdave 5cc091b
Add test of recursive mutex using libc FFI
divergentdave d11315e
Fix misleading function names
divergentdave fd94255
Add comments explaining asserts
divergentdave 141319a
Refactor sync shims with setters and getters
divergentdave ba3884d
Use checked addition/subtraction on lock counts
divergentdave e5e3256
Address review comments
divergentdave 735fc12
Handle variation in layout of pthread_mutex_t
divergentdave de29546
Add and rearrange mutex tests
divergentdave c7466c9
Add TerminationInfo::Deadlock, use in mutex shim
divergentdave 7f6df15
Rearrange functions
divergentdave bb06a0c
Restrict mutex static initializer test to Linux
divergentdave 37ddde9
Implement TryEnterCriticalSection
divergentdave e1a1592
Set some explicit return value sizes
divergentdave 8293d80
Set explicit return value size for windows shim
divergentdave ac8c98d
Store layouts of i32 and u32 inside Evaluator
divergentdave 79f3307
Update comments, rearrange code
divergentdave 100141f
Remove null checks, fall through to UB upon deref
divergentdave e794441
Use Deadlock machine stop uniformly
divergentdave d5d5a56
Add tests
divergentdave f9dc942
Changes to error handling
divergentdave 134d6a2
Add tests, improve test coverage
divergentdave bc54c76
Eagerly compute i32 and u32 layouts
divergentdave 0f5f0e1
Fix spelling typo
divergentdave 80497e5
Clean up conditional compilation
divergentdave File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.