[cairo] Fixing concurrency bugs in cairo's reference counting
alexl at redhat.com
Fri Dec 15 00:49:18 PST 2006
On Thu, 2006-12-14 at 10:25 -0500, Paul Davis wrote:
> 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.
Yeah, i would recommend using the stuff from glib. gobject uses that for
its atomic refcounting, and it works well.
Alexander Larsson Red Hat, Inc
alexl at redhat.com alla at lysator.liu.se
He's an underprivileged guitar-strumming werewolf from the 'hood. She's a
violent impetuous lawyer in the witness protection program. They fight crime!
More information about the cairo