made Dispatch() return bool indicating whether we processed any events inside it or if the timeout expired

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-16 12:31:30 +00:00
parent c139dda12a
commit 5a557d1ea0
4 changed files with 29 additions and 10 deletions

View File

@@ -67,8 +67,10 @@ public:
// unregister descriptor previously registered with RegisterFD()
virtual bool UnregisterFD(int fd) = 0;
// wait for an event for at most timeout milliseconds and process it
virtual void Dispatch(int timeout = TIMEOUT_INFINITE) = 0;
// wait for an event for at most timeout milliseconds and process it;
// return true if we processed any events or false if timeout expired
// without anything happening
virtual bool Dispatch(int timeout = TIMEOUT_INFINITE) = 0;
virtual ~wxFDIODispatcher() { }
};