[cairo] Fixing concurrency bugs in cairo's reference counting

Paul Davis paul at linuxaudiosystems.com
Thu Dec 14 07:25:35 PST 2006

On Thu, 2006-12-14 at 05:35 -0800, Carl Worth wrote:

> So, like I said, I think all we need is atomic increment and
> decrement. If anybody sees holes in what I described above, or can
> recommend implementation strategies for atomic increment and decrement
> on various platforms, that would be helpful.

i didn't read the email super-carefully, but from a read through this is
certainly a common pattern shared with several other cases where atomic
inc and dec are 100% adequate.

glib has reasonable cross-platform atomic ops implementation code; the
linux kernel also has some.


More information about the cairo mailing list