On 09/07/2024 8:43 PM, evilrat wrote:
- If your C/C++ library provides atomics, you can do this, but probably you can use some of the phobos as this is pretty low level stuff.

Atomics are provided by the compiler in the form of intrinsics.

If you do not do this, they cannot be inlined as you're forced to use inline assembly.

LDC and GDC like GCC and clang have an intrinsic based implementation for ``core.atomics``. DMD is the only D compiler that uses inline assembly currently.

It is all templated so yes it is accessible within a -betterC codebase.
  • Being reading a ... kiboshimo via Digitalmars-d-learn
    • Re: Being r... evilrat via Digitalmars-d-learn
      • Re: Bei... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... kiboshimo via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
            • ... kiboshimo via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Sergey via Digitalmars-d-learn
            • ... kiboshimo via Digitalmars-d-learn
    • Re: Being r... Lance Bachmeier via Digitalmars-d-learn
    • Re: Being r... monkyyy via Digitalmars-d-learn

Reply via email to