Skip to content

Conversation

@voids701
Copy link
Contributor

@voids701 voids701 commented Dec 23, 2025

bug: v/81564

rootcause: In ag_service, all locks are called by a single thread called bluetoothd, and there are no race conditions, so locks can be optimized.

bug: v/81564

rootcause: In ag_service, all locks are called by a single thread called bluetoothd, and there are no race conditions, so locks can be optimized.

Signed-off-by: wuxiaodong6 <[email protected]>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the device_lock mutex from the HFP AG service, simplifying the code based on the single-threaded execution model where all operations are serialized through the service loop.

Key changes:

  • Removed pthread_mutex_t device_lock from the ag_service_t structure
  • Eliminated all lock/unlock operations protecting device list access
  • Removed mutex initialization and destruction code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant