compilation fix for !wxUSE_THREADS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user