-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C-binding with multiple threads #1711
Comments
I don't think that multiple Qt event loops are possible in a single process, which is what |
Thanks for the clarification. Regards, |
Was this ever resolved? |
Unfortunately, no 🙁 |
My team is using wkhtmltopdf to print invoices in a multi-threaded context and the logo is occasionally missing. After a week of troubleshooting, the most likely explanation is that when this happens the logo asset was locked by another thread that was actively using it. Has this been resolved in wkhtmltopdf yet? |
Nope, using it in a multi-threaded context is not supported as mentioned earlier. |
Thanks for replying, @ashkulz. I refactored my code to use a multi-process mechanism (instead of multi-threaded), however, the random issue still persists. Regarding your earlier comment "that multiple Qt event loops are [not] possible in a single process", is the same true in a multi-process context as well? |
Hi,
I am trying to create a Node.js C++ binding for wkhtmltopdf.
This is what I would like to achieve:
I assume that I can achieve some performance gain by reusing one instance of QApplication among worker threads.
My issues are the followings:
I know that I can use processes (I am using a node module which exactly does this) instead of threads, however, I found that approach a little slow. I reckon because of IPC and the need to start a new QApplication for every task.
Could you please shed some light on these issues?
With thanks,
Laszlo
The text was updated successfully, but these errors were encountered: