2016-10-31 18:33:22 UTC
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. I would like to avoid
EnterCriticalSection/ LeaveCriticalSection as such blocking would be a
huge overkill, however it is still desireable to fetch reasonably
current values. I'd like to avoid doing manual assembly as well (for
portability reasons etc.).
Thanks a lot!
fpc-devel maillist - firstname.lastname@example.org