Boost C++ Libraries: Ticket #3754: Multithread problem in Named Mutexes https://svn.boost.org/trac10/ticket/3754 <p> 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 <em>(in file "/ boost_1_40_0/boost/interprocess/detail/managed_open_or_create_impl.hpp" line 264)</em> and if the control file already exists an exception occurs, which ultimately call the operating system <em>(FormatMessageA the file "/ boost_1_40_0/boost/interprocess/detail/win32_api.hpp" line 471)</em> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3754 Trac 1.4.3 Alex Sobral de Freitas <alexsobral@…> Mon, 14 Dec 2009 00:13:15 GMT status, severity changed; resolution set https://svn.boost.org/trac10/ticket/3754#comment:1 https://svn.boost.org/trac10/ticket/3754#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Not Applicable</span> </li> </ul> <p> I tried to correct the problem by using a anonymous mutex but I realized later that the problem did not occur anymore. I could no longer reproduce the problem. Maybe it was a problem specific to my machine, and a boot has resolved. I apologize for everything. </p> Ticket