[vmkit-commits] [vmkit] r109338 - /vmkit/trunk/lib/Mvm/CommonThread/CollectionRV.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Sat Jul 24 06:26:08 PDT 2010


Author: geoffray
Date: Sat Jul 24 08:26:08 2010
New Revision: 109338

URL: http://llvm.org/viewvc/llvm-project?rev=109338&view=rev
Log:
Unlock the RV lock when finishing synchronizing, so that blocked threads can lock the RV lock when they wake up.


Modified:
    vmkit/trunk/lib/Mvm/CommonThread/CollectionRV.cpp

Modified: vmkit/trunk/lib/Mvm/CommonThread/CollectionRV.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/CommonThread/CollectionRV.cpp?rev=109338&r1=109337&r2=109338&view=diff
==============================================================================
--- vmkit/trunk/lib/Mvm/CommonThread/CollectionRV.cpp (original)
+++ vmkit/trunk/lib/Mvm/CommonThread/CollectionRV.cpp Sat Jul 24 08:26:08 2010
@@ -78,6 +78,7 @@
   
   // And wait for other threads to finish.
   waitRV();
+  unlockRV();
 }
 
 void CollectionRV::join() {
@@ -152,6 +153,4 @@
   condEndRV.broadcast();
   self->inRV = false;
   self->MyVM->ThreadLock.unlock();
-  
-  unlockRV();
 }





More information about the vmkit-commits mailing list