From 5a40bba9763704e64f4fcc45c953b3c1ec98760a Mon Sep 17 00:00:00 2001 From: ahodgkinson Date: Fri, 1 Sep 2006 19:55:19 +0000 Subject: [PATCH] FTK change. Fixed issue where a thread was locking the same mutex twice. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@808 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- ftk/src/ftkiobuf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ftk/src/ftkiobuf.cpp b/ftk/src/ftkiobuf.cpp index 63be8cb..c334205 100644 --- a/ftk/src/ftkiobuf.cpp +++ b/ftk/src/ftkiobuf.cpp @@ -276,7 +276,8 @@ Retry: f_mutexLock( m_hMutex); bMutexLocked = TRUE; - pPending->Release(); + + pPending->Release( bMutexLocked); if( RC_BAD( rc)) { @@ -443,6 +444,7 @@ FLMINT F_IOBuffer::Release( if( m_pBufferMgr && !bMutexAlreadyLocked) { hMutex = m_pBufferMgr->m_hMutex; + f_assertMutexNotLocked( hMutex); f_mutexLock( hMutex); }