royguo commented on PR #3168:
URL: https://github.com/apache/brpc/pull/3168#issuecomment-3639742834

   > What I mean is that in the io_uring scenario, if polling mode is not 
applicable, eventfd can be used to register io_uring events with epoll. I think 
the efficiency problem of the bthread scheduling model is a common issue 
unrelated to io_uring.
   
   The reason I added an idle function here is, we want to have a chance to run 
some user-defined code during the idle time of the task group's pthread worker. 
Reaping some iouring cqe is one of its use cases, we can also use this 
mechanism for other purposes:
   - Reap async tasks calls (e.g., RocksDB operations in another thread pool, 
offloaded async compute functions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to