<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 3, 2015 at 5:46 PM, Will Godfrey <span dir="ltr"><<a href="mailto:willgodfrey@musically.me.uk" target="_blank">willgodfrey@musically.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I bracket the write call with a mutex to protect the data block from<br>
corruption as it's actually being written does that interfere with the read<br>
operation?<br>
<br>
Presumably this needs to compare the write pointer with the read one to find<br>
out if there is anything to read.<br></blockquote><div><br></div><div>(1) wrong mailing list<br></div><div>(2) the point of using ringbuffers is to avoid using a mutex<br></div></div></div></div>