Re: [patch] some threading fixes, and handle no default printers
Colin Walters <[email protected]> Fri, 13 Aug 2004 17:32:54 -0400
| Newsgroups | gmane.comp.gnome.print |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2004-08-13 at 16:56 -0400, Jody Goldberg wrote: > 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. I doubt any of it is safe at all, to make it threadsafe we'd probably have to take an approach similar to GTK+, with just a big mutex around the whole thing. I wonder if there are really any programs out there calling libgnomeprint from multiple threads. Now libgnomeprint is a client of libgnomecups, which uses threads, but this should be safe. It only invokes callbacks from the main thread, similarly to gnome-vfs. _______________________________________________ gnome-print-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-print-list
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBHTOGOIkJWWp2WGURAqmGAJ40VKGyw7reAxoPyds3rqlOqV4YVgCcDJs4 zBRrPOSfminLfcM3F1JKWMA= =swCV -----END PGP SIGNATURE-----