[FFmpeg-devel] [Jack-Devel] [PATCH] libavdevice: JACK demuxer

Olivier Guilyardi list
Sun Mar 15 23:28:46 CET 2009


M?ns Rullg?rd wrote:

> Writing SMP-safe code using shared buffers without any form of memory
> barriers is next to impossible.  This is because the exact time and
> order in which writes happen is generally unpredictable.  If you claim
> to have solved this problem you'll have to show something better than
> hand-waving as proof.

M?ns, in regard to proofs, if you can write a test that uses the jack
ringbuffer, fails without memory barriers, and succeeds with them, on the
platform on your choice (x86, PowerPC, ARM, etc...), I promise I'll buy you a beer.

I suspect no one on earth can do that.

--
  Olivier




More information about the ffmpeg-devel mailing list