[Interest] QThread

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Mar 25 06:40:50 CET 2014


On Tue, Mar 25, 2014 at 2:49 AM, Alan Ezust <alan.ezust at 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



More information about the Interest mailing list