Boost C++ Libraries: Ticket #6776: InterlockedExchangeAdd and InterlockedExchange as managed code https://svn.boost.org/trac10/ticket/6776 <p> Hi there, </p> <p> According this ticket &lt;<a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/6325"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/6325</a>&gt; reported to version 1.48.0, I'm still getting the same errors in different parts. </p> <p> To avoid it, I'm using the following workaround: </p> <p> boost/asio/detail/impl/winsock_init.ipp:39 </p> <pre class="wiki">long result = (1?::WSAStartup(MAKEWORD(major, minor), &amp;wsa_data) : InterlockedExchangeAdd64((volatile LONG64 *)0,(LONG64) 0)); </pre><p> boost/asio/detail/impl/win_iocp_io_service.ipp:89 </p> <pre class="wiki">InterlockedExchange64((volatile LONG64 *)&amp;shutdown_,(LONG64) 1); </pre><p> Could you please verify if is it Ok ? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6776 Trac 1.4.3 lthomas Tue, 10 Apr 2012 18:17:23 GMT type changed https://svn.boost.org/trac10/ticket/6776#comment:1 https://svn.boost.org/trac10/ticket/6776#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Support Requests</span> </li> </ul> Ticket chris_kohlhoff Tue, 29 May 2012 00:16:41 GMT <link>https://svn.boost.org/trac10/ticket/6776#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6776#comment:2</guid> <description> <p> This fix is not ok. The InterlockedExchange64 function only available from Windows Vista on. Please propose an alternative patch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Tue, 29 May 2012 01:28:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6776#comment:3 https://svn.boost.org/trac10/ticket/6776#comment:3 <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">duplicate</span> </li> </ul> <p> Duplicate of <a class="new ticket" href="https://svn.boost.org/trac10/ticket/6325" title="#6325: Support Requests: InterlockedExchangeAdd improperly identified as managed code. (new)">#6325</a>. Please use that ticket when proposing potential patches. </p> Ticket