diff options
| author | 2021-08-31 22:19:18 +0000 | |
|---|---|---|
| committer | 2021-08-31 22:19:18 +0000 | |
| commit | 618f49adede8ea3a63fe9633499eb03ce3f8da4e (patch) | |
| tree | 465222f32f860b54e33ec19f8a03cd1bd6d28021 /libs/gui/BLASTBufferQueue.cpp | |
| parent | bc26a9a330952afbc74a7e028557759013575d86 (diff) | |
| parent | 5c8b18c90806307939fd44c57855621ab004af8a (diff) | |
Use a separate mutex for BLASTBufferQueue in BLASTBufferItemConsumer am: 5c8b18c908
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15728802
Change-Id: Ic82ca3fc39a615ec80fb729340a3bbf8e7a7a99f
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 56a9683773..d860f30617 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -118,12 +118,12 @@ void BLASTBufferItemConsumer::getConnectionEvents(uint64_t frameNumber, bool* ne  }  void BLASTBufferItemConsumer::setBlastBufferQueue(BLASTBufferQueue* blastbufferqueue) { -    Mutex::Autolock lock(mMutex); +    std::scoped_lock lock(mBufferQueueMutex);      mBLASTBufferQueue = blastbufferqueue;  }  void BLASTBufferItemConsumer::onSidebandStreamChanged() { -    Mutex::Autolock lock(mMutex); +    std::scoped_lock lock(mBufferQueueMutex);      if (mBLASTBufferQueue != nullptr) {          sp<NativeHandle> stream = getSidebandStream();          mBLASTBufferQueue->setSidebandStream(stream); |