[PyQt] QImage and the GIL
Jason H
jhihn at gmx.com
Thu Mar 12 19:52:36 GMT 2015
The GIL is not in effect when you are in C++ code. If you are in QImage::scale, then you aren't experiencing GIL.
> Sent: Thursday, March 12, 2015 at 1:24 PM
> From: "Martin Altmayer" <martin.altmayer at web.de>
> To: pyqt at riverbankcomputing.com
> Subject: [PyQt] QImage and the GIL
>
> Hello,
>
> I use a separate thread to open and scale a large set of images.
> Unfortunately, with PyQt5 the main thread blocks while an image is
> loaded (it did work in PyQt4). I believe that the reason is that the
> QImage-constructor and QImage.scale do not release the GIL. Wouldn't it
> be better if they did?
>
> Thanks,
> Martin
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list