Re: Atomic Ints (Was: GObject thread safety)



On Fri, 2 Nov 2001, Alex Larsson wrote:

> On Fri, 2 Nov 2001, Sebastian Wilhelmi wrote:
> 
> > Hi,
> > 
> > > Otoh, we could add some atomic ops to implement refcounting that is MT
> > > safe without having the overhead of locking. I've did this for the
> > > ref/unref in the Mozilla javascript engine, and it makes quite a
> > > difference (compared to locks).
> > 
> > I've for some time now wanted to include that and given, how long the GLib API
> > of 2.0 will be fixed this indeed looks like a valuable addition.
> > Until now I hesitated, because:
> > 1) Its will add much asm-code-snippets to glib. That might prove hard to
> >    maintain.
> > 2) I do not know of any _L_GPL implementation of this yet. We have nspr
> >    under GPL, so we would have to ask to include the asm-snippets
> >    verbatim, even though I'm sure, they would allow using that.
> 
> Aren't they tripple licensing all mozilla code?
> 

They are quad licencing it - NPL/MPL/GPL/LGPL

[big snip]

and somebody should write sparc8/9 locking asm aswell 8-)

> 
> / Alex
> 

	Sander

"I don't think there is intelligent life within our solar system"
	-- Brian Behlendorf




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]