View Full Version : Long term syncronous method calls to asyncronous because of GUI
matsukan
15th August 2016, 08:01
What is best approach to convert synchronous C library method calls to asynchronous because they can take some time ? And this time GUI is frozen ... I know that best way is move library itself to asynchronous or move Qt based solution but this is not option ...
Ginsengelf
15th August 2016, 12:34
Hi, you can call you library functions from an extra thread. This way the GUI thread would not block.
Ginsengelf
anda_skoa
15th August 2016, 18:38
While I personally like the approach suggested by Ginsengelf due to having full control with a custom thread, it could also be possible to simply use QtConcurrent::run().
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.