Boost C++ Libraries: Ticket #9193: Add DCAS support for Windows 32-bit https://svn.boost.org/trac10/ticket/9193 <p> Currently Boost.Atomic does not support 64-bit atomics as lock-free when compiled for 32-bit Windows. </p> <p> The attached patch adds this ability by using _InterlockedCompareExchange64 (which is the only 64-bit intrinsic available for x86) to synthesise the other operations, albeit with lesser performance than if a "real" atomic were available. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9193 Trac 1.4.3 Gavin Lambert <boost@…> Thu, 03 Oct 2013 01:52:04 GMT attachment set https://svn.boost.org/trac10/ticket/9193 https://svn.boost.org/trac10/ticket/9193 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">atomic_dcas_win.patch</span> </li> </ul> Ticket Gavin Lambert <gavinl@…> Thu, 03 Oct 2013 03:22:24 GMT <link>https://svn.boost.org/trac10/ticket/9193#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9193#comment:1</guid> <description> <p> Possibly I should add that without this patch, Boost.<a class="missing wiki">LockFree</a>'s queue is not actually lock free when compiled with a pre-C++11 compiler, as tagged_ptr requires DCAS. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>timblechmann</dc:creator> <pubDate>Thu, 03 Oct 2013 09:17:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9193#comment:2 https://svn.boost.org/trac10/ticket/9193#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86144" title="atomic: 64bit cas support for 32bit windows fixes #9193">[86144]</a>) atomic: 64bit cas support for 32bit windows </p> <p> fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9193" title="#9193: Patches: Add DCAS support for Windows 32-bit (closed: fixed)">#9193</a> </p> Ticket