Boost C++ Libraries: Ticket #4039: interprocess named_mutex does not survive hibernate https://svn.boost.org/trac10/ticket/4039 <p> The named mutex is created before the hibernate, then opened after the hibernate, when I was debugging, the debugger would go back to another thread when opening the mutex. </p> <p> windows xp visual c++ 2003 standard </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4039 Trac 1.4.3 Ion Gaztañaga Wed, 24 Mar 2010 12:51:38 GMT <link>https://svn.boost.org/trac10/ticket/4039#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4039#comment:1</guid> <description> <p> Could you specify a bit more the error? The mutex can't be opened after the hibernation? The mutex disappears? </p> </description> <category>Ticket</category> </item> <item> <author>Jan Stetka <jan.stetka@…></author> <pubDate>Thu, 25 Mar 2010 15:05:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4039#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4039#comment:2</guid> <description> <p> I've put try...catch around the mutex too as it may be throwing an exception and that's why it was going back to the other thread, although I didn't look in the debug output. Will test it in a standalone program tonight. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 26 Mar 2010 16:56:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4039#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4039#comment:3</guid> <description> <p> #define BOOST_DATE_TIME_NO_LIB #include "boost\interprocess\sync\named_mutex.hpp" #include &lt;string&gt; #include &lt;iostream&gt; </p> <p> using namespace boost::interprocess; using namespace std; </p> <p> int main(int argc, char argv[]) { </p> <blockquote> <p> try { </p> </blockquote> <p> named_mutex nm(create_only,"testmtx"); </p> <blockquote> <p> } </p> <blockquote> <p> catch(interprocess_exception &amp;ex){ </p> </blockquote> <p> cout&lt;&lt; ex.what() &lt;&lt;endl; </p> </blockquote> <blockquote> <p> } </p> <blockquote> <p> string s; cin&gt;&gt; s;<em> pause to allow hibernation try{ named_mutex nm(open_only,"testmtx"); } </em></p> </blockquote> </blockquote> <p> </p> <blockquote> <blockquote> <blockquote> <p> catch(interprocess_exception &amp;ex){ </p> </blockquote> <p> cout&lt;&lt; ex.what() &lt;&lt;endl; <em>The system cannot find the file specified. </em></p> </blockquote> <p> } </p> <blockquote> <p> return 0; </p> </blockquote> </blockquote> <p> } </p> </description> <category>Ticket</category> </item> <item> <author>jan.stetka@…</author> <pubDate>Mon, 29 Mar 2010 11:06:32 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4039 https://svn.boost.org/trac10/ticket/4039 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">interprocess test.cpp</span> </li> </ul> Ticket Ion Gaztañaga Thu, 26 Aug 2010 10:21:47 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/4039#comment:4 https://svn.boost.org/trac10/ticket/4039#comment:4 <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">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">Boost-1.45.0</span> </li> </ul> <p> Fixed for Boost 1.45 in release branch </p> Ticket