summaryrefslogtreecommitdiffstats
path: root/src/kernel/qthread.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-11-03 01:01:37 -0500
committerTimothy Pearson <[email protected]>2013-11-03 01:01:37 -0500
commit8d210f61fc399ab91c0dee097a47185cf9e008fd (patch)
tree69b010cd5fd21e90e5b88540afd0fc27e9a3967d /src/kernel/qthread.cpp
parentd83cf650024b54665dbb8afe19b185e1fe74e3bd (diff)
downloadtqt3-8d210f61fc399ab91c0dee097a47185cf9e008fd.tar.gz
tqt3-8d210f61fc399ab91c0dee097a47185cf9e008fd.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qthread.cpp')
-rw-r--r--src/kernel/qthread.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/kernel/qthread.cpp b/src/kernel/qthread.cpp
index 7c8820087..86accebba 100644
--- a/src/kernel/qthread.cpp
+++ b/src/kernel/qthread.cpp
@@ -224,6 +224,29 @@ bool TQThread::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 TQThread::setThreadPostedEventsDisabled(bool disable)
+{
+ d->disableThreadPostedEvents = disable;
+}
+
+/*!
+ Returns TRUE if thread posted events are disabled, FALSE if not
+ */
+bool TQThread::threadPostedEventsDisabled() const
+{
+ return d->disableThreadPostedEvents;
+}
+
+/*!
\fn void TQThread::run()
This method is pure virtual, and must be implemented in derived