--- El mié, 26/11/08, Alf <naihe2010gmail.com> escribió:

> Hi.
> 
> I found you are the libpoppler's maintainer, so I
> contact you to get some
> help.
> 
> When I use poppler to render some pages in multiple
> threads, it often cause
> crashes.
> 
> But, When I use mutex to lock it, like:
> 
> pthread_mutex_lock (&rendermutex);
> poppler_page_render_to_pixbuf (page, 0, 0, ix, iy, zoom, 0,
> buf);
> pthread_mutex_unlock (&rendermutex);
> 
> this problem be solved.
> 
> So, I want to known, if libpoppler has some shared resource
> made use can't
> use in multiple threads applications?

No multiple threads can use X11 at the same time, i'm not an expert on the 
poppler glib bindings but instead poppler_page_render_to_pixbuf that seems to 
render to an X11 pixmap, you should use the glib function that does not use X11 
at all (don't know the name but i'd say it exists as as far as i remember 
evince is multithreaded)

Albert

> 
> and, I use poppler 0.10.0.
> 
> Thank you!
> 
> 
> -- 
>   ,= ,-_-. =.
> ( (_/)o o(\_) )
>    `-'(. .)`-'
>        \_/
> _______________________________________________
> poppler mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/poppler


      
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to