Re: [Boost-bugs] [Boost C++ Libraries] #11154: Constructing boost::interprocess::interprocess_semaphore throws in MacOS 10.9.5

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11154: Constructing boost::interprocess::interprocess_semaphore throws in MacOS 10.9.5
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-31 14:40:36


#11154: Constructing boost::interprocess::interprocess_semaphore throws in MacOS
10.9.5
------------------------------------------------+--------------------------
  Reporter: Jonathan Jones <jonathan.jones@…> | Owner: igaztanaga
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: interprocess
   Version: Boost 1.56.0 | Severity: Regression
Resolution: | Keywords:
------------------------------------------------+--------------------------

Comment (by igaztanaga):

 There were too many changes for a clean patch. For a workaround change:

 boost/interprocess/sync/interprocess_semaphore.hpp

 and change the preprocessor code to avoid entering in the following
 configuration

 {{{

 #if !defined(BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION) && \
    (defined(BOOST_INTERPROCESS_POSIX_PROCESS_SHARED) &&
 defined(BOOST_INTERPROCESS_POSIX_NAMED_SEMAPHORES))
    #include <boost/interprocess/sync/posix/semaphore.hpp>
    #define BOOST_INTERPROCESS_USE_POSIX

 }}}

 It should use configuration:

 {{{

 #elif !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
    #include <boost/interprocess/sync/spin/semaphore.hpp>
    #define BOOST_INTERPROCESS_USE_GENERIC_EMULATION
 #endif

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11154#comment:4>
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:18 UTC