[PD-dev] Why sys_ringbuf is not lock-free?

Nicolas Danet nicolas.danet at free.fr
Mon Mar 7 14:24:59 CET 2016


Hello,

In s_audio_paring.h the ring buffer used (sys_ringbuf) seems not thread-safe (not lock-free thus also). It is used in the PaStreamCallback to provide/consume audio samples. I suppose it is deliberate. Is anybody could help me to understand why it is safe that way? Any clue appreciated. 



More information about the Pd-dev mailing list