From: Gilles Depeyrot Date: Sun, 11 May 2003 19:28:13 +0000 (+0000) Subject: assert is raised when using the thread sample (which works) so the test is X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e8617760b089b3dd31e4d77ce493267a82fc1003 assert is raised when using the thread sample (which works) so the test is probably not so easy. Can widget callbacks be triggered from child threads and, if so, for which widgets? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 0d8189fd7c..bc09ab8263 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -366,7 +366,10 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout ) void wxapp_install_idle_handler() { - wxASSERT_MSG( wxThread::IsMain() || gs_WakeUpIdle, wxT("attempt to install idle handler from widget callback in child thread (should be exclusively from wxWakeUpIdle)") ); + // GD: this assert is raised when using the thread sample (which works) + // so the test is probably not so easy. Can widget callbacks be + // triggered from child threads and, if so, for which widgets? + // wxASSERT_MSG( wxThread::IsMain() || gs_WakeUpIdle, wxT("attempt to install idle handler from widget callback in child thread (should be exclusively from wxWakeUpIdle)") ); wxASSERT_MSG( wxTheApp->m_idleTag == 0, wxT("attempt to install idle handler twice") ); diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 0d8189fd7c..bc09ab8263 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -366,7 +366,10 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout ) void wxapp_install_idle_handler() { - wxASSERT_MSG( wxThread::IsMain() || gs_WakeUpIdle, wxT("attempt to install idle handler from widget callback in child thread (should be exclusively from wxWakeUpIdle)") ); + // GD: this assert is raised when using the thread sample (which works) + // so the test is probably not so easy. Can widget callbacks be + // triggered from child threads and, if so, for which widgets? + // wxASSERT_MSG( wxThread::IsMain() || gs_WakeUpIdle, wxT("attempt to install idle handler from widget callback in child thread (should be exclusively from wxWakeUpIdle)") ); wxASSERT_MSG( wxTheApp->m_idleTag == 0, wxT("attempt to install idle handler twice") );