Re: [Interest] [External] Re: How to properly terminate QtConcurrent run

2022-08-18 Thread Elvis Stansvik
Den tors 18 aug. 2022 16:44Sean Murphy via Interest skrev: > > > I'll look into this idea, but some of what my processChunk() does are > > > calls into an external library that I can't control so my options are > > > limited there. As far as I can tell, this is an issue for any code > that just

Re: [Interest] [External] Re: How to properly terminate QtConcurrent run

2022-08-18 Thread Sean Murphy via Interest
> > I'll look into this idea, but some of what my processChunk() does are > > calls into an external library that I can't control so my options are > > limited there. As far as I can tell, this is an issue for any code that > > just takes > a long time. > > Yes, if this it's a call into an

Re: [Interest] [External] Re: How to properly terminate QtConcurrent run

2022-08-18 Thread Elvis Stansvik
Den ons 17 aug. 2022 kl 17:12 skrev Sean Murphy via Interest : > > Thanks for the response! > > > You should signal processChunk to stop processing early. You can for > > example do this through an atomic variable which is periodically checked, > > e.g. > > as part of the stop condition in that