D2 CAS, atomic increment

Sean Kelly sean at invisibleduck.org
Wed Apr 15 08:53:48 PDT 2009


Denis Koroskin wrote:
> On Wed, 15 Apr 2009 17:23:51 +0400, Don <nospam at nospam.com> wrote:
> 
>> Jason House wrote:
>>> I'm currently using part of the Tango D2 branch to get basic lock free  
>>> methods. I know there's license issues with just copying Tango into  
>>> Phobos, so does anyone have (or be able to write) these basic building  
>>> blocks?
>> There are no license issues with using anything written by Sean (or me).
>>
>>>  I'm planning on porting the lock-free (and mostly fence free) hash  
>>> table from "high-scale-lib". It beats the pants off Java's concurrent  
>>> hash table and scales nearly linear to hundreds of cores and thousands  
>>> of threads. It can also handle a high write rate. I'll try to get it  
>>> into Phobos when done.
> 
> Perhaps, now that there is core.sync module in druntime, those atomics could be added to core.sync and std.atomics got deprecated?

Yup.  I've mostly been holding off on this until the multiprogramming 
strategy is better defined.

> BTW, core.sync is not included into DMD bundle and needs to be generated by hand. I believe it is a bug that is there since DMD2.027

Fixed for the next release.  It was an issue with the script that 
generates the druntime bundle.



More information about the Digitalmars-d mailing list