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

Skip to content
Commit 188a23d1 authored by Suqun Peng's avatar Suqun Peng
Browse files

ACL: Switch to GD thread to prevent race condition of accessing map

ACL_ReadConnectionAddress(), ACL_ReadPeerConnectionAddress() and
ACL_GetAdvertisingSetConnectedTo() are invoked in bt_main_thread/
bt_jni_thread, they iterate le_connection_map, but gd_stack_thread
will modify the map when LE link connects or disconnects.

Post tasks to GD thread to prevent race condition of accessing map

Bug: 373764860
Test: m com.android.btservices
Change-Id: Idfd05af0d01725e56ec53ab9525d370fbd5c644d
parent 9dfd223e
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