Skip to content

Commit

Permalink
Fix vtservice CPU hogging
Browse files Browse the repository at this point in the history
* fixes vtservice cpu hogging

Change-Id: Ief25e83c5b4d40e56da8487eef52574a969af9ca
Signed-off-by: minaripenguin <[email protected]>
  • Loading branch information
bengris32 authored and fazilsheik96 committed Mar 1, 2025
1 parent 538d42c commit d24c4c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/module/foundation/AHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ void AHandler::deliverMessage(const sp<AMessage> &msg) {
}

void AHandler::setDeliveryStatus(bool delivering, uint32_t what, int64_t startUs) {
AutoMutex autoLock(mLock);
// AutoMutex autoLock(mLock);
mDeliveringMessage = delivering;
mCurrentMessageWhat = what;
mCurrentMessageStartTimeUs = startUs;
}

void AHandler::getDeliveryStatus(bool& delivering, uint32_t& what, int64_t& durationUs) {
AutoMutex autoLock(mLock);
// AutoMutex autoLock(mLock);
delivering = mDeliveringMessage;
what = mCurrentMessageWhat;
durationUs = mCurrentMessageStartTimeUs == 0 ?
Expand Down

0 comments on commit d24c4c0

Please sign in to comment.