Re: [GD-General] cross platform 64bit lock free FIFO?
Brought to you by:
vexxed72
From: Andras B. <and...@gm...> - 2006-08-09 05:01:21
|
> Typically, a lock-free FIFO supports only a single writer and a single > reader. If that's all you need, then you don't even need the special > instructions, because the writer will always write the same variable, > and the reader will always read the other same variable. If your cache > is not 100% read-after-write coherent, then you may have a temporary > situation where there's something written that the reader doesn't yet > see (or vice versa), but on Intel, that can never happen. Yes, I only need one writer and one reader thread, but I'm not sure that I understand the solution you propose. Could you elaborate a bit? Thanks, Andras |