Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6108: Boost interprocess lock consumes 100% CPU on OS X
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-15 18:57:38
#6108: Boost interprocess lock consumes 100% CPU on OS X
------------------------------------+--------------------------
Reporter: tibdewal.rahulkumar@⦠| Owner: igaztanaga
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.47.0 | Severity: Showstopper
Resolution: wontfix | Keywords:
------------------------------------+--------------------------
Comment (by igaztanaga):
Vicente confirmed Mac Os 10.7 also passes your testcase successfully. I
think the correct solution would be to detect the minimum Mac Os
requirements for the build, checking the value of
MAC_OS_X_VERSION_MIN_REQUIRED. Something like:
{{{
#!cpp
#if defined(__APPLE__)
#include "TargetConditionals.h"
//Check we're on Mac OS target
#if defined(TARGET_OS_MAC)
#include "AvailabilityMacros.h"
//If minimum target for this compilation is older than Mac Os
Lion, then we are out of luck
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
#define BOOST_INTERPROCESS_BUGGY_POSIX_PROCESS_SHARED
#endif
#endif
#endif
}}}
If the SDK targets for Mac Os Lion or newer, then native process-shared
mutexes will be available.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6108#comment:14> 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:14 UTC