Are Fibers just broken in D?

Byron Moxie bheads at moxiegroup.com
Fri Apr 20 20:52:17 UTC 2018


On Friday, 20 April 2018 at 20:46:20 UTC, Steven Schveighoffer 
wrote:
> On 4/20/18 2:58 PM, Byron Moxie wrote:
>> [...]
>
> It sounds like the problems may be due to Win32 and not the 
> other pieces. Have you tried on a Win64 build? Even if that's 
> not your target, at least it can help you discover whether that 
> is the problem or not. The DMC runtime is the default on Win32, 
> and it's not especially thread-safe in all places.
>
> FWIW, I'm using vibe.d on Linux 64 bit with no problems (and 
> I've NEVER heard of atomicLoad and atomicStore not working on 
> any arch).
>
> -Steve

I had move the data I wanted to sync with atomicLoad/Store into a 
shared struct and pass a pointer to this struct to the other 
fibers. Not sure if this was an issue with TLS messing with class 
object I was passing around.


More information about the Digitalmars-d-learn mailing list