Cleanups
[invirt/third/libt4.git] / rpc / pollmgr.cc
index 33aeae2..919a286 100644 (file)
@@ -10,7 +10,7 @@
 PollMgr *PollMgr::instance = NULL;
 static std::once_flag pollmgr_is_initialized;
 
-void
+static void
 PollMgrInit()
 {
        PollMgr::instance = new PollMgr();
@@ -32,7 +32,7 @@ PollMgr::PollMgr() : pending_change_(false)
     th_ = std::thread(&PollMgr::wait_loop, this);
 }
 
-PollMgr::~PollMgr()
+PollMgr::~PollMgr() [[noreturn]]
 {
        //never kill me!!!
        VERIFY(0);
@@ -83,7 +83,7 @@ PollMgr::has_callback(int fd, poll_flag flag, aio_callback *c)
 }
 
 void
-PollMgr::wait_loop()
+PollMgr::wait_loop() [[noreturn]]
 {
 
        std::vector<int> readable;