On 31/10/16 18:48, Nikolai Zhubr wrote:
Hello all,

Is there any good generic (portable) function to ensure memory cache
flush for a thread on a multicore system?

What I'm trying to do is essentially fetch some debugging counters from
multiple threads. They might happen to run on separate cores, thus
having something pending in local cache sometimes.

Surely that shouldn't happen on a properly-implemented cache-coherent system?

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to