-
Notifications
You must be signed in to change notification settings - Fork 4
Implement a global lock #318
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
17 commits
Select commit
Hold shift + click to select a range
10ac446
Implement a global lock
rwb27 f7caa96
Add tests for lock-related functions and fix bugs
rwb27 6f17311
Basic test of locking, without server.
rwb27 4345617
Tidy up tests with some helper functions
rwb27 20503f3
Add tests for locking in the context of a mocked server.
rwb27 04491ce
Improve error handling for properties.
rwb27 1ae3110
Cope with bound actions being called more than once
rwb27 e745ef7
Add documentation on locking.
rwb27 cbb7c3d
Update test syntax after rebasing.
rwb27 790bf03
Make it clear how to access the global lock.
rwb27 b203b0f
Neater error handling for errors that can't start.
rwb27 922e1d0
Revise public API to have clearer argument
rwb27 0dfcc16
Docstring improvements from review
rwb27 5078fb6
Add a sanity check to `assert_takes_time`
rwb27 3468d98
Use consisten import for ThingServerInterface
rwb27 bbfc1e0
Make logic of _optionally_hold_global_lock clearer
rwb27 f0ca23b
Respond to review comments on test_global_lock
rwb27 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
Oops, something went wrong.
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.