Revision: 23355
http://opalvoip.svn.sourceforge.net/opalvoip/?rev=23355&view=rev
Author: rjongbloed
Date: 2009-09-07 10:41:39 +0000 (Mon, 07 Sep 2009)
Log Message:
-----------
Fixed recently introduced thread map operation being outside of mutex.
Modified Paths:
--------------
ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
Modified: ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
===================================================================
--- ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2009-09-07 10:36:22 UTC (rev 23354)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2009-09-07 10:41:39 UTC (rev 23355)
@@ -142,8 +142,8 @@
// which itself calls PThread::Current(), deadlocks are possible
process.m_activeThreadMutex.Signal();
delete it->second;
+ process.m_activeThreadMutex.Wait();
process.m_activeThreads.erase(it);
- process.m_activeThreadMutex.Wait();
found = PTrue;
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|