[go: nahoru, domu]

Skip to content
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

[async-rt] Simplify poll for TimerFutureEntry #1167

Open
wants to merge 1 commit into
base: 1.0.0-preview
Choose a base branch
from

Conversation

jessehui
Copy link
Contributor

Previously, there is too much work in "insert_entry", including making process for the timer wheel and fire timeout timers, which makes the poll slow and can cause the wait_timeout to fail to respond to other events. Now the heavy work is offloaded to the timer thread. And the current poll thread only inserts the timer into the pending list. The timer will then be inserted into the timer wheel by the timer thread when the timer thread is woken.

Previously, there is too much work in "insert_entry", including making process for the timer wheel and fire timeout timers,
which makes the poll slow and can cause the wait_timeout to fail to respond to other events.
Now the heavy work is offloaded to the timer thread. And the current poll thread only inserts the timer into the pending list.
The timer will then be inserted into the timer wheel by the timer thread when the timer thread is woken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant