Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/bulkdata/t2eventreceiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ void* T2ER_EventDispatchThread(void *arg)
if(ret != 0) // pthread cond wait failed return after unlock
{
T2Error("%s pthread_cond_wait failed with error code: %d\n", __FUNCTION__, ret);
if(pthread_mutex_unlock(&erMutex) != 0)
{
T2Error("%s pthread_mutex_unlock for erMutex failed\n", __FUNCTION__);
}
return NULL;
Comment thread
tabbas651 marked this conversation as resolved.
}
T2Debug("Received signal from T2ER_Push\n");
// Release erMutex before acquiring sTDMutex to avoid lock order reversal and potential deadlock
Expand Down
Loading