[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QImage and the GIL
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2015-03-16 17:18:51
Message-ID: c03954ea951de05f5d4aab12a3e68579 () riverbankcomputing ! com
[Download RAW message or body]
On 12/03/2015 5:24 pm, Martin Altmayer wrote:
> 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?
The GIL is now released for all calls that go to the filesystem or a
QIODevice (ie. those that might block).
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic