Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4524: interprocess::interprocess_semaphore consumes cpu while waiting
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-25 16:36:01
#4524: interprocess::interprocess_semaphore consumes cpu while waiting
----------------------------------------------+-----------------------------
Reporter: Gennady Proskurin <gpr@â¦> | Owner: igaztanaga
Type: Bugs | Status: reopened
Milestone: Boost 1.45.0 | Component: interprocess
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------
Changes (by Gennady Proskurin <gpr@â¦>):
* version: Boost 1.46.1 => Boost 1.47.0
Comment:
At quick glance seems that freebsd does not define
_POSIX_THREAD_PROCESS_SHARED, but defines _POSIX_SEMAPHORES, so
BOOST_INTERPROCESS_POSIX_PROCESS_SHARED is not defined and
BOOST_INTERPROCESS_POSIX_NAMED_SEMAPHORES is defined. At file
interprocess_semaphore.hpp there is a check for both
BOOST_INTERPROCESS_POSIX_PROCESS_SHARED and
BOOST_INTERPROCESS_POSIX_NAMED_SEMAPHORES.[[BR]][[BR]]
I'm not sure why BOOST_INTERPROCESS_POSIX_PROCESS_SHARED is checked for
semaphores. After reading posix docs I think it is for interprocess
mutexes and condvars, semaphores are process-shared by definition. Patch
for boost 1.47 attached, it fixes bug for me (on freebsd).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4524#comment:9> 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:07 UTC