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

Modified Files:
      Tag: thread_rewrite
        mutex.hpp 
Log Message:
try_mutex_scoped_lock throws if you try and lock it twice


Index: mutex.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/thread/win32/Attic/mutex.hpp,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- mutex.hpp   8 Jun 2006 14:24:23 -0000       1.1.2.4
+++ mutex.hpp   8 Jun 2006 16:30:14 -0000       1.1.2.5
@@ -147,6 +147,10 @@
             
             void lock()
             {
+                if(locked())
+                {
+                    throw boost::lock_error();
+                }
                 m.lock();
                 is_locked=true;
             }



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

Reply via email to