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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 5 03:49:31 PDT 2012


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

--- Comment #15 from Thomas Freitag <Thomas.Freitag at alfa.de> 2012-08-05 10:49:31 UTC ---
Created attachment 65138
  --> https://bugs.freedesktop.org/attachment.cgi?id=65138
Makes page rendering in splash thread safe

Here now the patch which makes page rendering thread safe. It especially offers
a new parameter fMT (multi thread) for PDFDoc::displayPageSlice which must be
set to gTrue if it should use in different threads with a shared PDFDoc object.
Only splash is really thread safe with this patch, because I haven't time to
test other output devices (and therefore didn't made the necessary changes
there). But it should be quite easy to make also other devices thread safe now:
just assure that nowhere the doc->getXRef() is used, use the new parameter
given by startPage.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list