Update of /cvsroot/boost/boost/boost/thread/win32
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30276
Modified Files:
Tag: thread_rewrite
mutex.hpp
Log Message:
Throw lock error if we try and unlock twice
Index: mutex.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/thread/win32/Attic/mutex.hpp,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- mutex.hpp 8 Jun 2006 14:11:48 -0000 1.1.2.3
+++ mutex.hpp 8 Jun 2006 14:24:23 -0000 1.1.2.4
@@ -85,6 +85,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