diff options
author | Timothy Pearson <[email protected]> | 2013-11-03 01:00:57 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-11-03 01:00:57 -0500 |
commit | 99b03be63de497bebbc26fcb2a564f1938493ef0 (patch) | |
tree | afcd65c3e2670e171bce5361a97b2139c33cb9e7 /src/kernel/qeventloop_unix_glib.cpp | |
parent | 9229bed187aca4df348498d9da38c4151cb5f797 (diff) | |
download | qt3-99b03be63de497bebbc26fcb2a564f1938493ef0.tar.gz qt3-99b03be63de497bebbc26fcb2a564f1938493ef0.zip |
Add threading debug spew when QT_DEBUG is set
Diffstat (limited to 'src/kernel/qeventloop_unix_glib.cpp')
-rw-r--r-- | src/kernel/qeventloop_unix_glib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/qeventloop_unix_glib.cpp b/src/kernel/qeventloop_unix_glib.cpp index 6924fcd..feff675 100644 --- a/src/kernel/qeventloop_unix_glib.cpp +++ b/src/kernel/qeventloop_unix_glib.cpp @@ -688,7 +688,7 @@ int QEventLoop::activateTimers() QTimerEvent e( t->id ); #if defined(QT_THREAD_SUPPORT) // Be careful...the current thread may not be the target object's thread! - if ((!t->obj) || (t->obj && (t->obj->contextThreadObject() == QThread::currentThreadObject()))) { + if ((!t->obj) || (QThread::currentThreadObject()->threadPostedEventsDisabled()) || (t->obj && (t->obj->contextThreadObject() == QThread::currentThreadObject()))) { QApplication::sendEvent( t->obj, &e ); // send event } else { @@ -731,7 +731,7 @@ int QEventLoop::activateSocketNotifiers() sn->pending = FALSE; #if defined(QT_THREAD_SUPPORT) // Be careful...the current thread may not be the target object's thread! - if ((!sn->obj) || (sn->obj && (sn->obj->contextThreadObject() == QThread::currentThreadObject()))) { + if ((!sn->obj) || (QThread::currentThreadObject()->threadPostedEventsDisabled()) || (sn->obj && (sn->obj->contextThreadObject() == QThread::currentThreadObject()))) { QApplication::sendEvent( sn->obj, &event ); // send event } else { |