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
This commit is contained in:
Vadim Zeitlin
2008-07-14 02:03:57 +00:00
parent 589c1174f4
commit 95867b4efc

View File

@@ -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);
}