From 95867b4efce9c8b3093d69a250eec361949ef77e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 14 Jul 2008 02:03:57 +0000 Subject: [PATCH] calling Notify() from child thread is ok -- as long as you do it from one and the same thread all the time git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 1d1b9cec69..5cb9783b71 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -21,7 +21,6 @@ #ifndef __GSOCKET_STANDALONE__ #include "wx/defs.h" #include "wx/private/gsocketiohandler.h" -#include "wx/thread.h" // for wxThread::IsMain() used in assert #endif #if defined(__VISAGECPP__) @@ -872,10 +871,6 @@ 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); } -- 2.50.0