Ben Woolley wrote:
> Do the updates of the mmap happen in the order that writes are made?
> If so, I could at least tell when coherence was reached.
> 
> But it isn't a huge deal. The main purpose was to be able to share
> memory between workers, and I can just do a read() into the shared
> memory to make the memory coherent.

I'm not sure it's possible to predict when a write() will become visible
via mmap(). If feasible, I would try doing the write via mmap as well.

Or as you say, if you only need shared memory, read() back into it would work.

Reply via email to