In my app I will receive various events that I would like to process asynchronously in a prioritised order.
I could do this with a boost::asio::io_service
, but my application is single threaded. I don't want to pay for locks and mallocs
you might need for a multi threaded program (the performance cost really is significant to me). I'm basically looking for a boost::asio::io_service
that is written for single threaded execution.
I'm pretty sure I could implement this myself using boost::coroutine
, but before I do, does something like a boost::asio::io_service
that is written for single threaded execution exist already? I scanned the list of boost libraries already and nothing stood out to me