[Poppler-bugs] [Bug 50992] library should be thread-safe

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 24 22:56:05 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=50992

--- Comment #45 from Adam Reichold <adamreichold at myopera.com> ---
(In reply to comment #43)
> Created attachment 67636 [details] [review]
> more changes to get qt library thread safe
> 
> This patch also inlcudes the changes from Adam. I went through the code of
> okular and tried to make all calls of the poppler qt library thread safe.

Just two question whether I understand this correctly: This patch aims to make
all (or just some and if so which) methods exposed through the Qt4 frontend by
Poppler::Document and Poppler::Page thread-safe, i.e. I could share my document
instance over several threads concurrently calling stuff like renderToImage and
search?

And I am supposed to check the POPPLER_QT4_THREADSAFE macro to find out whether
I need to lock document access? So for example:

#ifndef POPPLER_QT4_THREADSAFE
// locking goes here
#endif

// make Poppler do something

Best regards, Adam.

P.S.: The documentation comments have the "since 0.22" tag, is there a chance
this will make it into 0.22 even though 0.21 was already released?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20120925/0ff0fd5d/attachment.html>


More information about the Poppler-bugs mailing list