You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current SubmissionQueue::wake implementation always adds an event, even if we're not currently polling. We can try to keep track when we're polling and only then add a submission, otherwise it would be an no-op.
Thomasdezeeuw
changed the title
Don't submit needless submission in SubmissionQueue::wake
Don't make submission when not polling in SubmissionQueue::wake
Jun 16, 2024
The current
SubmissionQueue::wake
implementation always adds an event, even if we're not currently polling. We can try to keep track when we're polling and only then add a submission, otherwise it would be an no-op.I already have a implementation for this based on Mio's
Waker
: https://github.com/Thomasdezeeuw/heph/blob/64a3e330dc9f3bdc40a4cb61b004ec17501cf2d8/rt/src/thread_waker.rs.The text was updated successfully, but these errors were encountered: