X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdf7ff738cb755be0e9e7e1378d8c3073f08f0e1..2cce66352fc23859e991c2e7658dbf1cdf8c4183:/include/wx/private/selectdispatcher.h diff --git a/include/wx/private/selectdispatcher.h b/include/wx/private/selectdispatcher.h index 9ee71d4f9f..a704b8a83c 100644 --- a/include/wx/private/selectdispatcher.h +++ b/include/wx/private/selectdispatcher.h @@ -18,7 +18,9 @@ #ifdef __WATCOMC__ #include #include + #include #include + #include #else #include #endif @@ -89,14 +91,15 @@ public: virtual bool RegisterFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL); virtual bool ModifyFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL); virtual bool UnregisterFD(int fd); - virtual void Dispatch(int timeout = TIMEOUT_INFINITE); + virtual bool Dispatch(int timeout = TIMEOUT_INFINITE); private: // common part of RegisterFD() and ModifyFD() bool DoUpdateFDAndHandler(int fd, wxFDIOHandler *handler, int flags); - // call the handlers for the fds present in the given sets - void ProcessSets(const wxSelectSets& sets); + // call the handlers for the fds present in the given sets, return true if + // we called any handlers + bool ProcessSets(const wxSelectSets& sets); // helper of ProcessSets(): call the handler if its fd is in the set void DoProcessFD(int fd, const fd_set& fds, wxFDIOHandler *handler,