@TimSweeneyEpic Did you ever find a good solution to getting a CPU wide fence? I ran into a similar need in an allocator.
https://software.intel.com/en-us/forums/intel-moderncode-for-parallel-architectures/topic/537987 …
-
-
Replying to @abyrd89
Yes! Amazingly a robust API has existed since Windows XP: FlushProcessWriteBuffers, a process-wide fence. Problem solved!
1 reply 0 retweets 1 like -
Replying to @TimSweeneyEpic
Cool! I just found sys_membarrier() from that too. I'm guessing not so lucky with arm.
1 reply 0 retweets 1 like
Replying to @abyrd89
Any function that unmaps virtual memory and is guaranteed to have full global effect upon return (VirtualFree on Windows) should be equivalent to FlushProcessWriteBuffers due to the need to synchronize all cores.
10:50 PM - 13 Sep 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.