From 8d210f61fc399ab91c0dee097a47185cf9e008fd Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 3 Nov 2013 01:01:37 -0500 Subject: Automated update from Qt3 --- src/kernel/qthread.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/kernel/qthread.cpp') 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 @@ -223,6 +223,29 @@ bool TQThread::running() const return d->running; } +/*! + 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() -- cgit v1.2.1