chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.99k stars 1.23k forks source link

QUESTION: Possibility to set priority for the handlers #1420

Closed KaanRF closed 10 months ago

KaanRF commented 10 months ago

Hi,

I have question regarding scheduling and priorities. In the single thread system is there any way to set some priorities for the completion handler ? For an example during we post we can give info to execute first and schedule maybe order the handler accordingly ? For the time critical jobs would be very useful such a feature.

criatura2 commented 10 months ago

There are examples showing how to do this, try grepping for priority in asio's example dir.

KaanRF commented 10 months ago

Thank you @criatura2, found the related example.