Simplifications and clean-ups
[invirt/third/libt4.git] / rpc / poll_mgr.cc
index dc42274..d29abd2 100644 (file)
@@ -7,6 +7,8 @@
 #include <sys/epoll.h>
 #endif
 
+aio_callback::~aio_callback() {}
+
 poll_mgr poll_mgr::shared_mgr;
 
 class wait_manager {
@@ -14,9 +16,11 @@ class wait_manager {
         virtual void watch_fd(int fd, poll_flag flag) = 0;
         virtual bool unwatch_fd(int fd, poll_flag flag) = 0;
         virtual void wait_ready(vector<int> & readable, vector<int> & writable) = 0;
-        virtual ~wait_manager() noexcept {}
+        virtual ~wait_manager() noexcept;
 };
 
+wait_manager::~wait_manager() noexcept {}
+
 class SelectAIO : public wait_manager {
     public :
         SelectAIO();
@@ -192,7 +196,7 @@ void SelectAIO::wait_ready(vector<int> & readable, vector<int> & writable) {
         return;
     else if (ret < 0) {
         perror("select:");
-        IF_LEVEL(0) LOG("select_loop failure errno " << errno);
+        IF_LEVEL(0) LOG << "select_loop failure errno " << errno;
         VERIFY(0);
     }