[Boost-bugs] [Boost C++ Libraries] #6776: InterlockedExchangeAdd and InterlockedExchange as managed code

Subject: [Boost-bugs] [Boost C++ Libraries] #6776: InterlockedExchangeAdd and InterlockedExchange as managed code
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-09 19:31:57


#6776: InterlockedExchangeAdd and InterlockedExchange as managed code
------------------------------------+---------------------------------------
 Reporter: lthomas | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: InterlockedExchangeAdd |
------------------------------------+---------------------------------------
 Hi there,

 According this ticket <https://svn.boost.org/trac/boost/ticket/6325>
 reported to version 1.48.0, I'm still getting the same errors in different
 parts.

 To avoid it, I'm using the following workaround:

 boost/asio/detail/impl/winsock_init.ipp:39

 {{{
 long result = (1?::WSAStartup(MAKEWORD(major, minor), &wsa_data) :
 InterlockedExchangeAdd64((volatile LONG64 *)0,(LONG64) 0));
 }}}

 boost/asio/detail/impl/win_iocp_io_service.ipp:89

 {{{
 InterlockedExchange64((volatile LONG64 *)&shutdown_,(LONG64) 1);
 }}}

 Could you please verify if is it Ok ?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6776>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC