Boost C++ Libraries: Ticket #7860: smart_ptr's yield_k and spinlock utilities can improve spinlock-based interprocess sychronization primitives https://svn.boost.org/trac10/ticket/7860 <p> See: </p> <p> <a href="http://www.boost.org/doc/libs/1_52_0/boost/smart_ptr/detail/yield_k.hpp">http://www.boost.org/doc/libs/1_52_0/boost/smart_ptr/detail/yield_k.hpp</a> </p> <p> and </p> <p> <a href="http://www.boost.org/doc/libs/1_52_0/boost/smart_ptr/detail/spinlock.hpp">http://www.boost.org/doc/libs/1_52_0/boost/smart_ptr/detail/spinlock.hpp</a> </p> <p> for internal thread-synchronization code that could be used to improve Interprocess spin-based synchronization primitives. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7860 Trac 1.4.3 francisco.mailing.lists@… Tue, 08 Jan 2013 21:03:59 GMT cc set https://svn.boost.org/trac10/ticket/7860#comment:1 https://svn.boost.org/trac10/ticket/7860#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">francisco.mailing.lists@…</span> added </li> </ul> Ticket Ion Gaztañaga Sun, 27 Apr 2014 09:45:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7860#comment:2 https://svn.boost.org/trac10/ticket/7860#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> The new method was added in Boost 1.55, in commit: </p> <p> SVN: <a class="changeset" href="https://svn.boost.org/trac10/changeset/85505" title="Added a new spin-wait method. Spins + yields for a system tick and ...">r85505</a> GIT:SHA-1: da01f2f69c4837ae283d8d06782b07aa32d8dca1 </p> <ul><li>Added a new spin-wait method. Spins + yields for a system tick and then sleeps a tick. </li></ul><p> A new spin_wait class was developed: </p> <p> <a href="http://www.boost.org/doc/libs/1_55_0/boost/interprocess/sync/spin/wait.hpp">http://www.boost.org/doc/libs/1_55_0/boost/interprocess/sync/spin/wait.hpp</a> </p> <p> This internal class tries to generalize spin_k and it's used in all spin-based synchronization primivitives. </p> Ticket