By: Gabriele Svelto (gabriele.svelto.delete@this.gmail.com), December 5, 2014 10:17 am
Room: Moderated Discussions
Eric Bron nli (eric.bron.delete@this.zvisuel.com) on December 5, 2014 2:28 am wrote:
> so using a CriticalSection is generally a better choice than using ASM with lock prefixes, higher level,
> more flexible, and even faster/lower power when heavy contention (thanks to the PAUSE instruction)
Absolutely. I'm all for using what primitives are available instead of ASM, especially now that atomic operations are readily available as first class citizens in C/C++ compilers.
> so using a CriticalSection is generally a better choice than using ASM with lock prefixes, higher level,
> more flexible, and even faster/lower power when heavy contention (thanks to the PAUSE instruction)
Absolutely. I'm all for using what primitives are available instead of ASM, especially now that atomic operations are readily available as first class citizens in C/C++ compilers.