-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Using sharded locks instead of a global lock for Timers #6534
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 31 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ee626f5
first commit
wathenjiang ed42fae
fix args in build_alt_threaded_runtime
wathenjiang 1915c57
fix ci
wathenjiang 3f9a443
adopt code review suggestions from FrankReh
wathenjiang 5954e4f
fix set_next_wake_up&& small refactor
wathenjiang 565432b
thread-local id
wathenjiang 71bb30c
use crate::runtime::context::thread_rng_n
wathenjiang 8bf56ca
rm feature
wathenjiang e4288c6
fix multi_thread_alt
wathenjiang 7cdddd6
ci: allow(dead_code)
wathenjiang 178baeb
ci: rustfmt
wathenjiang 2de08f2
fix: condition feature
wathenjiang c808e81
fix: ci
wathenjiang 11ce15a
use cfg_rt and cfg_not_rt
wathenjiang 1d309bf
add time feature
wathenjiang 256c279
add time feature again
wathenjiang 6c8aa23
do not use random in context when shutdown
wathenjiang 1fb35c9
add time feature
wathenjiang 2497479
fix time feature
wathenjiang 18dd900
use context::thread_rng_n
wathenjiang fea8e32
feat: try to avoid lock in clear_entry
wathenjiang 5ecfd75
revert head
wathenjiang f7b36cb
Merge branch 'master' into sharded-timer
wathenjiang 16ff7ae
style: rename get_shard_id method to generate_shard_id function
wathenjiang b5d8ca1
fix: change shard_size type from usize to u32
wathenjiang ba8fc74
rm the unnecessary mold operation
wathenjiang 4a2c88e
Update tokio/src/runtime/time/entry.rs
wathenjiang c069805
feat: add AtomicOptionNonZeroU64 helper type
wathenjiang 5e3d1b5
fix: ci
wathenjiang 8ca8ddb
fix: next_wake shoud be in new method
wathenjiang 0c408f0
add the helper next_wake_time function
wathenjiang 71fd4ff
Update tokio/src/runtime/scheduler/multi_thread_alt/worker.rs
Darksonn b687274
Merge branch 'master' into sharded-timer
Darksonn 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
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.