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_unix.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/kernel/qthread_unix.cpp') diff --git a/src/kernel/qthread_unix.cpp b/src/kernel/qthread_unix.cpp index fb8f45318..6e8c4fdc3 100644 --- a/src/kernel/qthread_unix.cpp +++ b/src/kernel/qthread_unix.cpp @@ -105,6 +105,7 @@ void TQThreadInstance::init(unsigned int stackSize) finished = FALSE; running = FALSE; orphan = FALSE; + disableThreadPostedEvents = FALSE; pthread_cond_init(&thread_done, NULL); thread_id = 0; @@ -130,6 +131,9 @@ void *TQThreadInstance::start( void *_arg ) ((TQThreadInstance*)arg[1])->thread_id = pthread_self(); #endif // QT_USE_GLIBMAINLOOP +#ifdef QT_DEBUG + tqDebug("TQThreadInstance::start: Setting thread storage to %p\n\r", (TQThread *) arg[0]); +#endif // QT_DEBUG setCurrentThread( (TQThread *) arg[0] ); pthread_cleanup_push( TQThreadInstance::finish, arg[1] ); @@ -152,6 +156,8 @@ void TQThreadInstance::finish( void * ) return; } + tqDebug("TQThreadInstance::finish: In TQThreadInstance::finish for thread %p\n\r", (TQThread*)d->args[0]); + TQApplication::threadTerminationHandler((TQThread*)d->args[0]); TQMutexLocker locker( d->mutex() ); @@ -510,7 +516,7 @@ bool TQThread::wait( unsigned long time ) \sa CleanupType */ -TQThread::CleanupType TQThread::cleanupType() { +TQThread::CleanupType TQThread::cleanupType() const { return (TQThread::CleanupType)d->cleanupType; } -- cgit v1.2.1