[Interest] QThreadPool - global instance or custom one
Frank Rueter | OHUfx
frank at ohufx.com
Thu Jan 19 23:59:31 CET 2017
Hi all,
I have started using QThreadPool for the first time and am wondering if
it's save/recommended to create my own instance of it or to always use
the global instance?
I.e. the docs all tend to refer to the global instance but they don't
say anything about creating your own.
Are there any pros and cons?
In my case my app will run inside a host application, so my gut feeling
says to create my own thread pool so I don't accidentally hijack the
host application's pool, but I may be wrong?!
Any insight on this?
Cheers,
frank
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/compositing.html> | *workflow customisation and
consulting <http://ohufx.com/customising.html>* *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170120/1a153239/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ohufxLogo_50x50.png
Type: image/png
Size: 2666 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170120/1a153239/attachment.png>
More information about the Interest
mailing list