PollMgr *PollMgr::instance = NULL;
static std::once_flag pollmgr_is_initialized;
-void
+static void
PollMgrInit()
{
PollMgr::instance = new PollMgr();
th_ = std::thread(&PollMgr::wait_loop, this);
}
-PollMgr::~PollMgr()
+PollMgr::~PollMgr() [[noreturn]]
{
//never kill me!!!
VERIFY(0);
}
void
-PollMgr::wait_loop()
+PollMgr::wait_loop() [[noreturn]]
{
std::vector<int> readable;