-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Vendor a fork of async_executor to allow for deeper integration with bevy_tasks #20331
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
Open
james7132
wants to merge
76
commits into
bevyengine:main
Choose a base branch
from
james7132:bevy_executor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,541
−869
Open
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
3691690
Inline async_executor
james7132 54b0bbc
Merge LocalExecutor into the Executor implementation
james7132 2b8ed66
Merge ThreadEecutors into the new forked async_executor
james7132 1121542
Move stealer queues to TLS storage. Avoid extra Arc allocations
james7132 01ac223
Queue tasks directly back onto local queues to avoid global injector …
james7132 1dab08e
Use UnsafeCell instead of RefCell
james7132 0b036fe
Optimize access of thread locked tasks
james7132 45b5e15
Clean up unnecessary unsafe use
james7132 ab45573
Address potential unsoundness with ThreadSpawner
james7132 05f1f40
Fix some CI errors
james7132 0f226bf
Update docs
james7132 9c28473
Format TOML files
james7132 7f8c932
Make note on ThreadLocal soundness hole
james7132 f84028e
Allow clippy warning
james7132 f44d302
Fix typos
james7132 227258e
Try to fix CI outside of miri
james7132 d88035d
Remove depnedency on concurrent-queue
james7132 2028736
Revert "Clean up unnecessary unsafe use"
james7132 da66005
Fix single-threaded builds
james7132 8d4e5ca
Fix builds for no_std builds
james7132 3cb694f
Shut up Clippy
james7132 d0ef3f4
Fix bevy_ecs builds
james7132 25233ff
Whoops
james7132 69a1389
Arc is only used when no_std
james7132 943f135
Remove now unused mentions of LocalExecutor
james7132 5b9a40e
Remove unused import
james7132 355c96f
Use pin_project_lite for web builds instead of pin_project
james7132 564daf6
Fix TOML formatting
james7132 b100634
Make CatchUnwind pin_project_lite friendly
james7132 8700f7e
Add missing AssertUnwindSafe
james7132 a94bfda
Merge branch 'main' into bevy_executor
james7132 6246ec8
Another attempt at fixing CI
james7132 6faca4f
Merge branch 'main' into bevy_executor
james7132 93c696b
Properly handle thread destruction and recycling
james7132 686d429
Switch to a solution that doesn't require TLS access in thread destru…
james7132 aa64f03
Try to provide a blocking solution to TaskPool::scope in single threa…
james7132 1d73b78
Merge branch 'main' into bevy_executor
james7132 79c31b7
CI fixes
james7132 fc875d9
Merge branch 'main' into bevy_executor
james7132 4dcb37c
Fix up the build, and hopefully CI
james7132 0923f02
Shut up Clippy
james7132 43a09d7
Remove test println
james7132 8f313f7
Fix for portable atomics
james7132 4a8b6b0
Fix for web builds
james7132 7e5cf6c
Reduce async type genreation, code indirection, and handle single-thr…
james7132 eb689b5
Fix docs and move expect attribute
james7132 7ec07af
Complete the comment
james7132 4a4434c
Add async_executor's tests
james7132 2ce5537
Run Miri on bevy_tasks in CI
james7132 8af9886
Make stealing a non-blocking operation
james7132 cfc6af4
Merge branch 'main' into bevy_executor
james7132 74d301c
Cache-pad the thread locals and disable multithreaded polling when th…
james7132 898166b
Fix Miri job to run them in sequence
james7132 2b96789
Fix up README and Clippy
james7132 f5737f7
It's clippy
james7132 84edd4f
Address UB in spawn_scoped_local from OOMs
james7132 dc7ce63
Move expect to outer block
james7132 b217cbd
Merge branch 'main' into bevy_executor
james7132 00b62c2
Fix lint
james7132 5d122a0
Go back to using ConcurrentQueue
james7132 73798b1
Don't panic
james7132 909f2e5
Formatting
james7132 96dd3d5
is_multiple_of lint
james7132 6c4f878
Merge branch 'main' into bevy_executor
james7132 b10d226
Minimize cfg blocks
james7132 e8b9c1f
Try getting rid of the main thread local executor tick system
james7132 3354efa
Use a proper struct for Sleepers
james7132 c6fecbd
Update module docs
james7132 5df82e1
Remove unused code
james7132 ee8f531
Cleanup using utilities we already have
james7132 20fe27b
Avoid the extra Waker clone when initially scheduling tasks
james7132 ea262ef
Clippy, formatting, and panic documentation
james7132 f305276
Rename ThreadSpawner -> LocalTaskSpawner
james7132 5373e7c
Fix macro
james7132 9c35b81
Spin loop hints
james7132 ded5b15
Merge branch 'main' into bevy_executor
james7132 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
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.