How to get default IO loops that drogon creates in app::run()? I noticed it is a member of a private class, ListenerManager::ioLoops_, and there is no public methods to get it.
I want to register some channels for my business logic when program starts, but don't want to create new threads. Is there any way to get it?
To be specific, I want to create my dbclient (my own implementation) on each threads.
How to get default IO loops that drogon creates in app::run()? I noticed it is a member of a private class,
ListenerManager::ioLoops_
, and there is no public methods to get it.I want to register some channels for my business logic when program starts, but don't want to create new threads. Is there any way to get it?
To be specific, I want to create my dbclient (my own implementation) on each threads.