Re: [Boost-bugs] [Boost C++ Libraries] #4524: interprocess::interprocess_semaphore consumes cpu while waiting

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4524: interprocess::interprocess_semaphore consumes cpu while waiting
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-16 15:33:14


#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:
----------------------------------------------+-----------------------------

Comment (by anonymous):

 #include <boost/interprocess/detail/workaround.hpp>
 #undef BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION
 #include <boost/interprocess/sync/interprocess_semaphore.hpp>

 int _tmain(int argc, _TCHAR* argv[])
 {
         interprocess_semaphore sem;
 }


 This code can work and cpu is normal,
 but build with runtime-link-static,it will detect memory leaks.

 my system is vs2008 sp1.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4524#comment:10>
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:11 UTC