[cairo] New per-scaled_font mutex to fix locking bugs

Keith Packard keithp at keithp.com
Mon Feb 5 18:54:36 PST 2007

On Mon, 2007-02-05 at 18:08 -0800, Bill Spitzak wrote:

> > The only thing I'm unsure of there is the NIL_INITIALIZER. This is
> > only used when initializing the mutex for a nil surface, so the value
> > won't ever be looked at, but it does need to compile at least.
> I assumme your intention is to be able to type:
> 	static cairo_mutex_t foo = CAIRO_MUTEX_NIL_INITIALIZER;

No, this initializer is used only for the nil scaled font object, which
has no glyphs and will never attempt to lock this mutex. So, it just
needs something that will compile, not generate correct data.

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070205/eaf08c01/attachment.pgp

More information about the cairo mailing list