[cairo] Static caches and thread-safety

Bill Spitzak spitzak at d2.com
Thu Nov 11 13:00:08 PST 2004


On Thursday 11 November 2004 11:27 am, Carl Worth wrote:

> This can't stay this way. The patch did add stubs acknowledging the
> deficiency:
>
> 	static void
> 	_lock_global_font_cache (void)
> 	{
> 	    /* FIXME: implement locking. */
> 	}
>
> 	static void
> 	_unlock_global_font_cache (void)
> 	{
> 	    /* FIXME: implement locking. */
> 	}
>
> 	static cairo_cache_t *
> 	_global_font_cache = NULL;
>
> But how shall we fix this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock.c
Type: text/x-c
Size: 2776 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20041111/6e5b9504/lock.bin


More information about the cairo mailing list