On Fri, 2009-01-02 at 17:09 +0100, Germán Diago wrote: > Hello. I'm trying to scale (make thumbnails) of pictures in a thread > pool. But I get random > crashes. The program (in the slot that goes to the thread pool) uses > Gdk::Pixbuf to scale > images. > I push a task to the thread pool but I don't know why, it crashes. Is > Gdk::Pixbuf thread-safe?
I don't think so. You'll need to do locking on your own if you access the same pixbuf concurrently. You should probably use Glib::Mutex instead of the GDK lock, though. > I'm forgetting anything? I use Glib::thread_init at the beginning of > the program. Do I need to > use gdk_threads_init()? Thanks in advance. Armin _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
