-
-
Notifications
You must be signed in to change notification settings - Fork 353
"Guest mode", for cohabitation with Qt etc. #1551
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 26 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
11d7db2
First pass attempt at "guest mode"
njsmith 5b75987
fix stupid missing arg in _io_windows.py
njsmith 9018066
Use thread cache to vroom vroom faster
njsmith 06e7523
Add a big comment explaining the trickiest change
njsmith 513d744
reduce indentation
njsmith 5631de4
guest mode: Add basic signal handling, and send TrioInternalError to …
njsmith b131958
Add a basic test of guest mode
njsmith 91e3554
Try to adapt to py36 asyncio limitations
njsmith 4340d3a
Add missing return
njsmith fd81370
3.6 asyncio is super annoying
njsmith 1469d44
missing import
njsmith cc4d144
avoid some set_wakeup_fd warnings
njsmith b7a21f2
Add missing method that was causing guest mode test to hang on macOS
njsmith 50322d9
Get better debug info from test_guest_mode_basic
njsmith 5b7f4dd
cffi does not implicitly coerce 0 to NULL
njsmith 3ec60fc
add some pragma: no covers
njsmith 09783ec
add missing import
njsmith f023eea
TESTS
njsmith 1bd0249
Make "assert no RuntimeWarnings" tests more reliable
njsmith ebea122
Fix indentation on some asserts
njsmith ef8a85a
Add test that guest mode properly routes TrioInternalErrors
njsmith cd86726
Replace some 'type(x) is y' with 'isinstance(x, y)'
njsmith b85176d
Small coverage tweaks
njsmith 3559500
Fix test so it exercises what it's supposed to be exercising
njsmith d4343dc
Add run_sync_soon_not_threadsafe= kwarg on start_guest_run
njsmith a827cfb
First pass a comprehensive docs
njsmith 8018cef
newsfragment
njsmith eea8010
black
njsmith 7c0744b
Doc updates
njsmith be88548
Add note about custom clocks in guest mode
njsmith b84a715
Fix comment
njsmith 9317072
Merge branch 'master' of github.com:python-trio/trio into guest-loop
njsmith c120632
Enable KI handling in guest mode
njsmith 7c9ce28
Add note about guest mode KI handling to docs
njsmith 19882c7
Clarify that you can't magically share async code between host and guest
njsmith 7207cde
Remove defunct draft docs
njsmith c6697db
Remove obsolete placeholder
njsmith 66967ce
Make kqueue code more similar to epoll code
njsmith 3083de5
Improve wording in docs
njsmith 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
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.