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/qthread.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/qthread.cpp')
-rw-r--r-- | src/kernel/qthread.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/kernel/qthread.cpp b/src/kernel/qthread.cpp index 93fc3f2..4eeb823 100644 --- a/src/kernel/qthread.cpp +++ b/src/kernel/qthread.cpp @@ -224,6 +224,29 @@ bool QThread::running() const } /*! + Changes the way cross thread signals are handled + If disable is FALSE, signals emitted from this thread will be + posted to any other connected threads' event loops (default). + + If disable is TRUE, calls to emit from this thread + will immediately execute slots in another thread. + This mode of operation is inherently unsafe and is provided + solely to support thread management by a third party application. + */ +void QThread::setThreadPostedEventsDisabled(bool disable) +{ + d->disableThreadPostedEvents = disable; +} + +/*! + Returns TRUE if thread posted events are disabled, FALSE if not + */ +bool QThread::threadPostedEventsDisabled() const +{ + return d->disableThreadPostedEvents; +} + +/*! \fn void QThread::run() This method is pure virtual, and must be implemented in derived |