From: Václav Slavík Date: Thu, 20 Dec 2007 19:42:04 +0000 (+0000) Subject: compilation fix for !wxUSE_THREADS X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2ada746fb47bf68c9f2dab6399a6cd5510320984 compilation fix for !wxUSE_THREADS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index d424f1dad1..8bcb88fb0a 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -872,8 +872,10 @@ void GSocket::Notify(bool flag) { if (flag == m_use_events) return; +#if wxUSE_THREADS // it is not safe to attach or detach i/o descriptor in child thread wxASSERT_MSG( wxThread::IsMain(), "should be called in main thread only" ); +#endif m_use_events = flag; EnableEvents(flag); }