[Interest] QThreadPool functionality for QThreads

Frank Rueter | OHUfx frank at ohufx.com
Thu Jan 19 01:31:34 CET 2017


OK, thanks Thiago and Elvis.
I think I got the picture now and can proceed knowing I'm not heading 
into a dead end.

Cheers,
frank

On 19/01/17 1:10 PM, Thiago Macieira wrote:
> On quarta-feira, 18 de janeiro de 2017 20:04:41 PST Elvis Stansvik wrote:
>> If you have one QThread that depends on the completion of another,
>> then no, I don't think there's a convenient API in Qt to express that
>> relationship and run the threads in sequence. You'll have to string
>> them together yourself, or maybe use something else like Threadweaver.
>> I could be wrong of course
> You can always chain-connect one thread's finished() signal to the other's
> start() slot.
>
> But that's unnecessary overhead: stopping and starting threads. You should do
> like Elvis says and just reuse the thread.
>




More information about the Interest mailing list