[cairo] Atomic reference counting

Carl Worth cworth at cworth.org
Thu Apr 5 11:45:55 PDT 2007

On Thu, 05 Apr 2007 14:11:23 -0400, Behdad Esfahbod wrote:
> On Thu, 2007-04-05 at 04:00 -0400, Chris Wilson wrote:
> > 3) introduce struct _cairo_object { ref_count, status, user_data};
> Does a mutex make sense here too?  Do we want to make cairo_surface_t
> usable from multiple threads?  Or we don't care?

We've never wanted to add object-level locking inside of cairo. That
just leads to less efficiency than application-level locking, (see bad
experience from Xlib thread-locking implementation).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070405/76d71b50/attachment.pgp

More information about the cairo mailing list