<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rwlock on rustbites</title><link>https://www.rustbites.com/tags/rwlock/</link><description>Recent content in Rwlock on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 08 May 2026 17:52:10 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/rwlock/index.xml" rel="self" type="application/rss+xml"/><item><title>125. RwLockWriteGuard::downgrade — Hand a Write Lock Off as a Read, Atomically</title><link>https://www.rustbites.com/posts/bite-125/</link><pubDate>Thu, 07 May 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-125/</guid><description>&lt;p&gt;You took a write lock, updated the data, and now you only want to read. Dropping the write guard and re-acquiring as a reader leaves a window where another writer can slip in. &lt;code&gt;downgrade&lt;/code&gt; closes that window.&lt;/p&gt;</description></item></channel></rss>