[Boost-bugs] [Boost C++ Libraries] #10720: boost::interprocess Windows semaphore and mutex creation can fail due to naming convention

Subject: [Boost-bugs] [Boost C++ Libraries] #10720: boost::interprocess Windows semaphore and mutex creation can fail due to naming convention
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-30 13:14:34


#10720: boost::interprocess Windows semaphore and mutex creation can fail due to
naming convention
---------------------------------------------+--------------------------
 Reporter: Ville Outamaa <ville.outamaa@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
---------------------------------------------+--------------------------
 boost::interprocess names the mutexes and semaphores using the sync_id and
 sync_handles classes found in interprocess/sync/windows/sync_utils.hpp.
 The sync_id class uses winapi::query_performance_counter to obtain a value
 which is then used to create a supposedly unique identifier for the
 semaphore or mutex in sync_handles::fill_name.

 The problem is that when multiple mutexes and/or semaphores are created
 within such a short time frame that the value returned by
 winapi::query_performance_counter does not change, the creation fails with
 winapi::error_already_exists.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10720>
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:17 UTC