git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3793
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/sckaddr.h"
#include "wx/socket.h"
#include "wx/sckaddr.h"
#include "wx/socket.h"
-// GRG: Why is this needed?
+#if defined(__WXMSW__)
+#define PROCESS_EVENTS() wxYield()
+#elif defined(__WXGTK__)
-#define wxYield() gtk_main_iteration()
+#define PROCESS_EVENTS() gtk_main_iteration()
// --------------------------------------------------------------
// ClassInfos
// --------------------------------------------------------------
// --------------------------------------------------------------
// ClassInfos
// --------------------------------------------------------------
// Wait for buffer completion.
while (m_defer_buffer != NULL)
// Wait for buffer completion.
while (m_defer_buffer != NULL)
// Wait for buffer completion.
while (m_defer_buffer != NULL)
// Wait for buffer completion.
while (m_defer_buffer != NULL)
// they poll the socket, using GSocket_Select(), to check for
// the specified combination of event flags, until an event
// occurs or until the timeout ellapses. The polling loop
// they poll the socket, using GSocket_Select(), to check for
// the specified combination of event flags, until an event
// occurs or until the timeout ellapses. The polling loop
-// calls wxYield(), so this won't block the GUI.
+// calls PROCESS_EVENTS(), so this won't block the GUI.
bool wxSocketBase::_Wait(long seconds, long milliseconds, wxSocketEventFlags flags)
{
bool wxSocketBase::_Wait(long seconds, long milliseconds, wxSocketEventFlags flags)
{
}
while ((state == -1) && timeout);
}
while ((state == -1) && timeout);