Applied patch [ 864469 ] WaitForAccept(): 100% CPU Usage (NON-GUI application)

(Alex Thuering)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-01-11 14:35:46 +00:00
parent 7b519e5e0c
commit b1a8a61082
3 changed files with 14 additions and 8 deletions

View File

@@ -678,6 +678,10 @@ bool wxSocketBase::_Wait(long seconds,
else
timeout = m_timeout * 1000;
#if !defined(wxUSE_GUI) || !wxUSE_GUI
GSocket_SetTimeout(m_socket, timeout);
#endif
// Wait in an active polling loop.
//
// NOTE: We duplicate some of the code in OnRequest, but this doesn't