Re: Converting from tango.Atomic to D2 core.atomic

2011-07-07 Thread Sean Kelly
1. The volatile statements should really be converted to atomic ops. I've been lazy about it because it works as-is. 2a. There is an atomicLoad and atomicStore in core.atomic. Not sure if it's in the current release though. Sent from my iPhone On Jul 6, 2011, at 11:45 AM, eris wrote: > Hi,

Re: Converting from tango.Atomic to D2 core.atomic

2011-07-06 Thread KennyTM~
On Jul 6, 11 23:48, dsimcha wrote: == Quote from eris (jvbur...@gmail.com)'s article a) core.atomic implements nearly all binary ops as well as nearly all assignment / increment ops. But it doesn't implement the simplest of the ops: load, store. Are these assumed to "just work" for ints and do

Re: Converting from tango.Atomic to D2 core.atomic

2011-07-06 Thread eris
Yes, but it appears that I must have checked out an earlier version that had bugs. I'm not sure how that happened. I built it according to the directions on the qtd page. After looking at their Atomic.d implementation, I see numerous updates that should fix several issues. I'll re-checkout th

Re: Converting from tango.Atomic to D2 core.atomic

2011-07-06 Thread Daniel Gibson
Am 06.07.2011 17:45, schrieb eris: > Hi, > > I've been converting 'qtd' (the qt lib interface for D) to ldc / D2 version. > Apparently some areas of the phobos and druntime library are still a little > green for D2 or LDC2 because I'm jumping through some hoops to make it work. > > Minor Issues:

Re: Converting from tango.Atomic to D2 core.atomic

2011-07-06 Thread dsimcha
== Quote from eris (jvbur...@gmail.com)'s article > a) core.atomic implements nearly all binary ops as well as nearly all > assignment / increment ops. But it doesn't implement the simplest of the ops: > load, store. Are these assumed to "just work" for ints and doubles? If so, > fine, but there

Converting from tango.Atomic to D2 core.atomic

2011-07-06 Thread eris
Hi, I've been converting 'qtd' (the qt lib interface for D) to ldc / D2 version. Apparently some areas of the phobos and druntime library are still a little green for D2 or LDC2 because I'm jumping through some hoops to make it work. Minor Issues: 1. core.thread is still using 'volatile' instead