a10 icon indicating copy to clipboard operation
a10 copied to clipboard

Don't make submission when not polling in SubmissionQueue::wake

Open Thomasdezeeuw opened this issue 1 year ago • 2 comments

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.

Thomasdezeeuw avatar Jul 14 '23 11:07 Thomasdezeeuw