[Qt-interest] Check if thread crashed
Thiago Macieira
thiago at kde.org
Wed Jul 27 03:44:04 CEST 2011
On Tuesday, 26 de July de 2011 22:39:23 Cole, Derek wrote:
> Hello,
>
> I am trying to debug some code that I have that is running in a QtConcurrent
> thread. The code is hitting a section and calling exit(-1), but that isnt
> killing my Qt application.
>
> Is there a way to check the QFutureWatcher to see whether or not the thread
> exited normally or not?
Do you mean it's calling ::exit(1), from the ISO C and POSIX function exit?
Not an exit member function?
If a thread calls that function, ALL threads in this process exit.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110726/7d58aec2/attachment.bin
More information about the Qt-interest-old
mailing list