]> git.saurik.com Git - wxWidgets.git/commitdiff
no changes, just added a clarifying comment
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jan 2009 16:28:18 +0000 (16:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jan 2009 16:28:18 +0000 (16:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/epolldispatcher.cpp

index 75fa0909b4b4f0b5165752b7f596af3fd76e8e62..d42c4fea3b27c1380bdd0e4258dcac3b563f7783 100644 (file)
@@ -194,6 +194,10 @@ wxEpollDispatcher::DoPoll(epoll_event *events, int numEvents, int timeout) const
 bool wxEpollDispatcher::HasPending() const
 {
     epoll_event event;
+
+    // NB: it's not really clear if epoll_wait() can return a number greater
+    //     than the number of events passed to it but just in case it can, use
+    //     >= instead of == here, see #10397
     return DoPoll(&event, 1, 0) >= 1;
 }