Update of /cvsroot/boost/boost/boost/thread/win32
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26554

Modified Files:
      Tag: thread_rewrite
        mutex.hpp 
Log Message:
try_mutex locks throw if unlocked twice


Index: mutex.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/thread/win32/Attic/mutex.hpp,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -d -r1.1.2.5 -r1.1.2.6
--- mutex.hpp   8 Jun 2006 16:30:14 -0000       1.1.2.5
+++ mutex.hpp   8 Jun 2006 16:39:21 -0000       1.1.2.6
@@ -161,6 +161,10 @@
             }
             void unlock()
             {
+                if(!locked())
+                {
+                    throw boost::lock_error();
+                }
                 m.unlock();
                 is_locked=false;
             }



_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to