X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a50fb9c08396a37521dffd48bbf346f83fc49f3c..27a9bd487b5ee30238e35ff4962bf70237cfc2c0:/include/wx/sckint.h?ds=inline diff --git a/include/wx/sckint.h b/include/wx/sckint.h index 8d90c4b133..3fec426a7a 100644 --- a/include/wx/sckint.h +++ b/include/wx/sckint.h @@ -82,7 +82,11 @@ class SocketWaiter: public wxThread { int m_fd; }; -class SocketRequester: public wxThread { +class SocketRequester +#if wxUSE_THREADS + : public wxThread +#endif + { public: SocketRequester(wxSocketBase *socket, wxSocketInternal *internal); ~SocketRequester(); @@ -118,6 +122,7 @@ class wxSocketInternal { void ReleaseFD(); int GetFD() { return m_fd; } + void SetFD(int fd) { m_fd = fd; } void ResumeWaiter(); void StopWaiter(); @@ -135,8 +140,8 @@ class wxSocketInternal { wxMutex m_socket_locker, m_fd_locker, m_request_locker, m_end_requester; wxCondition m_socket_cond; SocketWaiter *m_thread_waiter; - SocketRequester *m_thread_requester; #endif + SocketRequester *m_thread_requester; wxList m_requests; int m_fd; bool m_invalid_requester;