Re: [Boost-bugs] [Boost C++ Libraries] #6325: InterlockedExchangeAdd improperly identified as managed code.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6325: InterlockedExchangeAdd improperly identified as managed code.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-24 08:07:44


#6325: InterlockedExchangeAdd improperly identified as managed code.
---------------------------------------+------------------------------------
  Reporter: filmorependrgn@… | Owner: chris_kohlhoff
      Type: Support Requests | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords: InterlockedExchangeAdd
---------------------------------------+------------------------------------

Comment (by anonymous):

 This bug still exists in VS2012. I have solved my issue using:

 #pragma managed(push, off)

 LONG CTimerBase::GetCount()
 {
     return InterlockedExchangeAdd( &m_mutexCount, 0 );
 }

 #pragma managed(pop)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6325#comment:2>
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:12 UTC