diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-11-03 01:01:37 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-11-03 01:01:37 -0500 |
commit | 8d210f61fc399ab91c0dee097a47185cf9e008fd (patch) | |
tree | 69b010cd5fd21e90e5b88540afd0fc27e9a3967d /src/kernel/qthread_unix.cpp | |
parent | d83cf650024b54665dbb8afe19b185e1fe74e3bd (diff) | |
download | tqt3-8d210f61fc399ab91c0dee097a47185cf9e008fd.tar.gz tqt3-8d210f61fc399ab91c0dee097a47185cf9e008fd.zip |
Automated update from Qt3
Diffstat (limited to 'src/kernel/qthread_unix.cpp')
-rw-r--r-- | src/kernel/qthread_unix.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |