On 2017-11-29 17:13, Wanderer wrote:
I'm trying to simulate a race condition in D with the following code:
I'm not sure what your end goal is but perhaps you could try to see if the LLVM thread sanitizer [1] can be used with LDC. The thread sanitizer can identify race conditions even though they're not actually triggered [2].

It can be quite difficult to simulate a race condition because x86 has an almost strong memory model.

[1] https://clang.llvm.org/docs/ThreadSanitizer.html
[2] https://developer.apple.com/videos/play/wwdc2016/412/ 16:00

--
/Jacob Carlborg

Reply via email to