[Interest] Segmentation fault on exiting Qt event loop
Konstantin Shegunov
kshegunov at gmail.com
Mon Dec 17 13:04:45 CET 2018
On Mon, Dec 17, 2018 at 1:39 PM Andrew Ialacci <andrew at dkai.dk> wrote:
> Assuming each threads quit() is called and all operations are stopped in
> each thread correctly is using a loop and sleep still ok?
>
Ok's a relative term, but I wouldn't do (or recommend) it. That's the whole
reason you have QThread::wait (and pthread_join, std::thread::join and so
on) to begin with. Just wait for the threads the usual and recommended way
instead of polling them for no obvious reason. :)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181217/c7bd995f/attachment.html>
More information about the Interest
mailing list