On Thursday 30 July 2015 13:41:10 saheb preet singh wrote: > Hi, > > I am Saheb Preet Singh, a KDE GSOC student. I am working on the okular > project. > > I was working on the linearization support which allows to open the files > in the reader prior to its complete download. I am having some queries > related to KIO. > > Now, I am able to get the size of the file and ranges of the file in KIO. > > I am stuck at an error that KIO is not thread safe. The KIO::get method is > being called whenever poppler( a backend for Okular ) demands more data. > Now, this library may be invoked by main thread of the okular as well as > secondary threads ( like pixmap generation threads ). > > I heard from somebody that, we cannot execute KIO code in two threads in > kdelibs4. Since, okular do not properly support kf5, I have to work with > kdelibs4 only. > > Could anybody please suggest how can I access KIO in such a scenario?
Is this still an issue? I think by now you can work on okular KF5, using KIO's thread safety in KF5, no? Otherwise you need to go via the main thread for everything, e.g. using signal/slot connections to request a kio operation in the main thread and to receive the result in the secondary thread later. -- David Faure, fa...@kde.org, http://www.davidfaure.fr Working on KDE Frameworks 5 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<