Re: [patch] some threading fixes, and handle no default printers

Jody Goldberg <[email protected]> Fri, 13 Aug 2004 16:56:29 -0400
Newsgroups gmane.comp.gnome.print
Message-ID <[email protected]>
On Fri, Aug 13, 2004 at 04:04:07PM -0400, Colin Walters wrote:
> On Fri, 2004-08-13 at 15:18 -0400, Jody Goldberg wrote:
> 
> > Putting the threading checks in the gpaui code where there are no
> > obvious threads is certainly simple, but seems out of place.  I'd
> > rather they be down in the only threaded backend
> >     libgnomeprint/libgnomeprint/modules/cups/gnome-print-cups.c
> > which keeps knowledge of threads local.
> 
> But we don't want to depend on GTK+ in libgnomeprint, right?

I'm not convinced that the gpa code is threadsafe we need a mutex
down there.  However, you're right we'll need the gdk mutex up in
the ui too.