On Wed, Jan 5, 2022 at 3:03 AM Scott Bloom <sc...@towel42.com> wrote:

> Its such a nice simple interface for launching a background thread and
> asynchronously being notified when it finishes 😊
>

The point is that it doesn't start a thread at all, not necessarily. The
threads are pooled and your job is queued for execution. When and on which
thread that happens is beyond your control, nor is it deterministic. It may
happen (almost) immediately or sometime later when the other pending jobs
have been processed. What you want is to kill a thread you don't own - you
haven't started, you don't manage and you don't know when or how it
finishes. Hence Thiago's advice - use QThread if you really *must* kill it.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to