Re: [Boost-bugs] [Boost C++ Libraries] #4039: interprocess named_mutex does not survive hibernate

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4039: interprocess named_mutex does not survive hibernate
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-26 16:56:07


#4039: interprocess named_mutex does not survive hibernate
----------------------------------------------------+-----------------------
 Reporter: Jan Stetka <jan.stetka@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: interprocess
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
----------------------------------------------------+-----------------------

Comment(by anonymous):

 #define BOOST_DATE_TIME_NO_LIB
 #include "boost\interprocess\sync\named_mutex.hpp"
 #include <string>
 #include <iostream>

 using namespace boost::interprocess;
 using namespace std;

 int main(int argc, char argv[])
 {
         try
         {
 named_mutex nm(create_only,"testmtx");
         }
                            catch(interprocess_exception &ex){
            cout<< ex.what() <<endl;
    }
         string s;
         cin>> s;// pause to allow hibernation
         try{
         named_mutex nm(open_only,"testmtx");
         }

                    catch(interprocess_exception &ex){
           cout<< ex.what() <<endl; //The system cannot find the file
 specified.
    }
         return 0;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4039#comment:3>
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