Boost C++ Libraries: Ticket #3567: Request for shared_lock_guard https://svn.boost.org/trac10/ticket/3567 <p> It would be nice to have a lighter alternative for the shared_lock template, similar to the lock_guard alternative for the unique_lock. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3567 Trac 1.4.3 viboes Sun, 22 Nov 2009 17:14:03 GMT <link>https://svn.boost.org/trac10/ticket/3567#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3567#comment:1</guid> <description> <p> Something like that? </p> <pre class="wiki"> template&lt;typename Mutex&gt; class shared_lock_guard { private: Mutex&amp; m; explicit shared_lock_guard(shared_lock_guard&amp;); shared_lock_guard&amp; operator=(shared_lock_guard&amp;); public: explicit shared_lock_guard(Mutex&amp; m_): m(m_) { m.lock_shared(); } shared_lock_guard(Mutex&amp; m_,adopt_lock_t): m(m_) {} ~shared_lock_guard() { m.unlock_shared(); } }; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sun, 22 Nov 2009 19:51:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3567#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3567#comment:2</guid> <description> <p> Yes, exactly. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 29 Nov 2009 20:24:35 GMT</pubDate> <title>type, severity changed; cc set https://svn.boost.org/trac10/ticket/3567#comment:3 https://svn.boost.org/trac10/ticket/3567#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>type</strong> <span class="trac-field-old">Feature Requests</span> → <span class="trac-field-new">Patches</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Optimization</span> → <span class="trac-field-new">Not Applicable</span> </li> </ul> Ticket viboes Sat, 27 Nov 2010 13:46:24 GMT type changed https://svn.boost.org/trac10/ticket/3567#comment:4 https://svn.boost.org/trac10/ticket/3567#comment:4 <ul> <li><strong>type</strong> <span class="trac-field-old">Patches</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> Comeback to Feature request as the patch is not complete. </p> Ticket viboes Thu, 05 Jan 2012 05:50:13 GMT owner, status changed https://svn.boost.org/trac10/ticket/3567#comment:5 https://svn.boost.org/trac10/ticket/3567#comment:5 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Wed, 21 Mar 2012 20:54:37 GMT milestone changed https://svn.boost.org/trac10/ticket/3567#comment:6 https://svn.boost.org/trac10/ticket/3567#comment:6 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.41.0</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> Ticket viboes Sat, 31 Mar 2012 08:06:22 GMT attachment set https://svn.boost.org/trac10/ticket/3567 https://svn.boost.org/trac10/ticket/3567 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">3567.path</span> </li> </ul> Ticket viboes Sat, 31 Mar 2012 08:12:25 GMT <link>https://svn.boost.org/trac10/ticket/3567#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3567#comment:7</guid> <description> <p> Committed in trunk revision 77661. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 28 May 2012 15:11:40 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3567#comment:8 https://svn.boost.org/trac10/ticket/3567#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Committed in release branch at <a class="changeset" href="https://svn.boost.org/trac10/changeset/78543" title="Merged boost.thread from trunk">[78543]</a> </p> Ticket