04.26.06

Threading problems

Posted in Projects, ePDFView at 8:49 pm by Jordi Fita

In hoping to improve the user interface of ePDFView I’m trying to adding a little of threading so loading the document and rendering pages will be done in background.The problem? Either I’m too stupid or threads are difficult (or both, which is more probable.) I mean, Glib has a great support for threading, but when I have a problem with the application (which seems random now) I don’t know where to look to.

Also, adding threads to the application makes the automated tests a lot more difficult and slower: I have to wait for the document to load, which is done by a different thread so I don’t really know when or how it will end. For now I put some sleep() statements which obviously makes the test slower than it should.

I only hope that I learn from all this :-)

Leave a Comment