On Tue, Mar 25, 2014 at 2:49 AM, Alan Ezust <alan.ez...@gmail.com> wrote:
> If you're using Qt 5.2 or later, there is a new API you can use.
>
> Call isInterruptionRequested() in your loop,
>
>  http://qt-project.org/doc/qt-5/qthread.html#isInterruptionRequested
>
> And call requestInterruption() from outside.
>
> http://qt-project.org/doc/qt-5/qthread.html#requestInterruption
>
> I guess this makes it possible for you to avoid the whole atomic/volatile
> thing alltogether.

Hmmm...this looks handy!

Thanks for pointing it out.

-mandeep
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to