Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5c8b18c9 authored by Alec Mouri's avatar Alec Mouri Committed by Ady Abraham
Browse files

Use a separate mutex for BLASTBufferQueue in BLASTBufferItemConsumer

Avoids the following deadlock...

Thread 1:
* BLASTBufferQueue::transactionCallback acquires
BLASTBufferQueue::mMutex
* BLASTBufferItemConsumer::updateFrameTimestamps waits to
acquire BLASTBufferItemConsumer::mMutex

Thread 2:
* BLASTBufferItemConsumer::onSidebandStreamChanged acquires
BLASTBufferItemConsumer::mMutex
*  BLASTBufferQueue::setSidebandStream tries to acquire
BLASTBufferQueue::mMutex

Bug: 192998815
Test: Both CTS Media and Mediav2 (by partner)
Change-Id: I37523031841db3f1a29481bbfa76d6c028a6942e
parent 66a59c3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment