On Monday, 2 December 2024 at 02:29:39 UTC, Ali Çehreli wrote:
I am not sure whether

  stopRequested = true

is correct even when there is a single writer of that variable. There are several other methods of communicating the request. I chose that one for this example.

I notice core.atomic has an atomicLoad() / atomicStore() pair of APIs which might be the "canonical" way to code in that fashion.

Andy

  • Variable modifie... Ritina via Digitalmars-d-learn
    • Re: Variabl... Andy Valencia via Digitalmars-d-learn
      • Re: Var... Ali Çehreli via Digitalmars-d-learn
        • Re:... Andy Valencia via Digitalmars-d-learn
        • Re:... Salih Dincer via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
            • ... Salih Dincer via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Nick Treleaven via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Ali Çehreli via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Andy Valencia via Digitalmars-d-learn

Reply via email to