On the Linux platform, does tokio use level-triggered or edge-triggered? #315
Unanswered
phil-skillwon
asked this question in
Q&A
Replies: 1 comment 2 replies
-
IMO tokio (and tokio-uring) should be edge triggered, the loop is needed because the fd might be read concurrently |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On the Linux platform, when Tokio uses epoll for I/O multiplexing, does it use level-triggered or edge-triggered? Does the Tokio runtime use epoll for handling file descriptor I/O events, or is there another event detection mechanism employed by the Tokio runtime?
Recently, when I was reading the source code of tokio-serial, I was confused about the loop in the poll_read function. Why is there a loop added in the poll_read/poll_write function? The following code comes from tokio-serial:
Beta Was this translation helpful? Give feedback.
All reactions