removed deadlock potential from test code

This commit is contained in:
Jeff Hill johill@lanl.gov
2013-05-15 10:24:18 -06:00
parent 8db3d7391b
commit deb1fe8c7c
+1 -1
View File
@@ -1406,9 +1406,9 @@ static void multiSubscrDestroyLateNoCallbackTest ( const char *pName, unsigned i
epicsMutexUnlock ( pTestData->m_mutex );
}
for ( j=0; j < multiSubscrDestroyLateNoCallbackEventCount; j++ ) {
SEVCHK ( ca_clear_event ( pTestData->m_eventData[j].m_id ) , NULL );
epicsMutexLockStatus lockStatus = epicsMutexLock ( pTestData->m_mutex );
verify ( lockStatus == epicsMutexLockOK );
SEVCHK ( ca_clear_event ( pTestData->m_eventData[j].m_id ) , NULL );
pTestData->m_eventData[j].m_callbackIsOk = FALSE;
epicsMutexUnlock ( pTestData->m_mutex );
}