[PyKDE] Threads & PyQt 3?

Phil Thompson phil at river-bank.demon.co.uk
Sun Feb 24 02:30:04 GMT 2002

Gerard Vermeulen wrote:
> Great Phil,
> but I really think that adding the Py_BEGIN_ALLOW_THREADS and
> Py_END_ALLOW_THREADS to the wrappers may really help to run threads
> more smoothly, in case that the wrapped functions ask a lot of CPU time
> or require I/O.

Currently this is done (via sipReleaseLock() and sipAcquireLock()) for
calls that handle Qt events (eg. QApplication.exec_loop()). There
shouldn't be any problem with adding calls to things like
QFile.readBlock() etc. Or are you suggesting adding them for every
single Qt call?


More information about the PyQt mailing list