Subject: [Boost-bugs] [Boost C++ Libraries] #3754: Multithread problem in Named Mutexes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-11 16:03:35
#3754: Multithread problem in Named Mutexes
-------------------------------------------------------------+--------------
Reporter: Alex Sobral de Freitas <alexsobral@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: interprocess
Version: Boost 1.40.0 | Severity: Showstopper
Keywords: |
-------------------------------------------------------------+--------------
I was developing a test for named_mutex and the program began to close
unexpectedly. The situation occurred with multiple threads simultaneously
trying to create named_mutex objects.
Investigating the problem more deeply I have identified that the builder
tries to create the named_mutex control file ''(in file "/
boost_1_40_0/boost/interprocess/detail/managed_open_or_create_impl.hpp"
line 264)'' and if the control file already exists an exception occurs,
which ultimately call the operating system ''(FormatMessageA the file "/
boost_1_40_0/boost/interprocess/detail/win32_api.hpp" line 471)'' and the
program quits after calling this function.
This problem only occurs with multiple threads creating named_mutexes
simultaneously, and I believe it is because this function OS is not multi-
threaded safe.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3754> 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:02 UTC