Thin Locks in D

Leandro Lucarella llucax at gmail.com
Fri Jul 25 09:32:39 PDT 2008


Sean Kelly, el 24 de julio a las 23:09 me escribiste:
> Lionello Lunesu wrote:
> >"Walter Bright" <newshound1 at digitalmars.com> wrote in message 
> >news:g6b1ae$up4$1 at digitalmars.com...
> >>http://bartoszmilewski.wordpress.com/2008/07/24/thin-locks-in-d/
> >>
> >>and of course on reddit:
> >>
> >>http://www.reddit.com/comments/6tbzc/thin_locks_in_d/
> >I remember reading somewhere that critical-sections on Windows do just that.
> 
> They pretty much do.  And futexes are largely the same thing in Linux.

So, why D must reinvent the wheel, duplicating a well known technique done
in most modern OS? This will only add overhead to D.

Please, at least make it conditional only to OSs that don't provide this
optimization by themselves.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
"Lidiar" no es lo mismo que "holguear"; ya que "lidiar" es relativo a
"lidia" y "holguear" es relativo a "olga".
	-- Ricardo Vaporeso



More information about the Digitalmars-d mailing list