[fpc-devel] A generic function for (multicore) cache flush?

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Mon Oct 31 21:39:45 CET 2016

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 

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

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-devel mailing list