diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-05-04 11:43:52 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-05-04 11:43:52 (GMT) |
commit | 1a0fd473bcea62d1e471bb49ca06d931d0deb616 (patch) | |
tree | d96b7bab0495432935c1b12b82ba87048652e31f /src/activeqt/control/control.pro | |
parent | 32493498dcf3aa1ab9973aab381c5ca99d9ba9fd (diff) | |
download | Qt-1a0fd473bcea62d1e471bb49ca06d931d0deb616.zip Qt-1a0fd473bcea62d1e471bb49ca06d931d0deb616.tar.gz Qt-1a0fd473bcea62d1e471bb49ca06d931d0deb616.tar.bz2 |
Fix for thread termination in Symbian OS.
Since Open C does not support all pthread funtions, thread termination
in Symbian OS is implemented differently. Before this fix,
QThread::Terminate just terminated the native thread. Because
QThreadPrivate::finish was not called, the 'running', 'finished' etc
flags were not set and thread termination related signals were not
correctly emitted.
In UNIX finish is called by pthread_cancel since thread cancelation
points are set. In Symbian OS we need to call it manually since
pthread_cancel is not supported.
It was necessary to add a new parameter to QThreadPrivate::finish, which
tells whether the native thread handle can be closed or not. This was
required since 'symbian_thread_handle.Terminate' will not succeed if
thread handle is closed. On the other hand we cannot first terminate the
thread and then call QThreadPrivate::finish.
Autotest: qthread and qprocess passes in HW (5800) and Emulator
Review By: miikka.heikkinen@digia.com
Diffstat (limited to 'src/activeqt/control/control.pro')
0 files changed, 0 insertions, 0 deletions