Scheduler: Change ClockService implementation to utilize the POSIX CLOCK_MONOTONIC...
[senf.git] / Scheduler / Poller.ct
index d0737a8..3948a22 100644 (file)
@@ -43,7 +43,7 @@ prefix_ bool senf::scheduler::Poller<Value>::set(int fd, int events, Value * dat
             return true;
     if (errno == EPERM)
         return false;
-    throw SystemException("epolll_ctl");
+    SENF_THROW_SYSTEM_EXCEPTION("epolll_ctl()");
 }
 
 template <class Value>
@@ -51,7 +51,7 @@ prefix_ void senf::scheduler::Poller<Value>::remove(int fd)
 {
     if (epoll_ctl(epollFd_, EPOLL_CTL_DEL, fd, 0) == -1)
         if (errno != ENOENT && errno != EBADF)
-            throw SystemException("epoll_ctl");
+            SENF_THROW_SYSTEM_EXCEPTION("epoll_ctl()");
 }
 
 template <class Value>
@@ -64,7 +64,7 @@ prefix_ typename senf::scheduler::Poller<Value>::range senf::scheduler::Poller<V
         if (rv == -1) {
             if (errno == EINTR)
                 continue;
-            throw SystemException("epoll_wait");
+            SENF_THROW_SYSTEM_EXCEPTION("epoll_wait()");
         }
         break;
     }