summaryrefslogtreecommitdiffstats
path: root/src/kernel/qthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qthread.cpp')
-rw-r--r--src/kernel/qthread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/qthread.cpp b/src/kernel/qthread.cpp
index fe03ce066..7c8820087 100644
--- a/src/kernel/qthread.cpp
+++ b/src/kernel/qthread.cpp
@@ -132,6 +132,10 @@
TQThread::TQThread()
{
+#ifdef QT_THREAD_SUPPORT
+ TQMutexLocker locker( TQApplication::tqt_mutex );
+#endif // QT_THREAD_SUPPORT
+
d = new TQThreadInstance;
d->init(0);
}