<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>mikeash.com pyblog/friday-qa-2012-02-17-ring-buffers-and-mirrored-memory-part-ii.html comments</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2012-02-17-ring-buffers-and-mirrored-memory-part-ii.html#comments</link><description>mikeash.com Recent Comments</description><lastBuildDate>Sun, 12 Apr 2026 02:30:22 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Peter N Lewis - 2012-06-24 06:54:06</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2012-02-17-ring-buffers-and-mirrored-memory-part-ii.html#comments</link><description>Nice article as always.
&lt;br /&gt;
&lt;br /&gt;s/hting/thing/
&lt;br /&gt;</description><guid isPermaLink="true">69d9d8cd9b65260608eee20aef2af5c0</guid><pubDate>Sun, 24 Jun 2012 06:54:06 GMT</pubDate></item><item><title>mikeash - 2012-05-12 02:46:43</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2012-02-17-ring-buffers-and-mirrored-memory-part-ii.html#comments</link><description>It's not, no. The API as-is is inherently unsafe for that scenario, since reading/writing are separate from advancing the pointer. I'm not sure offhand how you'd make it safe for multiple readers or writers, but it would probably have to start with an atomic get-and-advance-pointer operation, and some more bookkeeping to distinguish between areas that are data, free, or pending data.</description><guid isPermaLink="true">f5f1bf5541b5cd15f97c0d02d889dc58</guid><pubDate>Sat, 12 May 2012 02:46:43 GMT</pubDate></item><item><title>Peter Bierman - 2012-05-12 01:20:32</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2012-02-17-ring-buffers-and-mirrored-memory-part-ii.html#comments</link><description>Is the code thread-safe for multiple reader and/or writer threads? I have a guess as to how to add that, but guessing and thread-safety don't mix well.</description><guid isPermaLink="true">b8a0765dcea588e190d4868b8ed32242</guid><pubDate>Sat, 12 May 2012 01:20:32 GMT</pubDate></item></channel></rss>
