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
Loading
Please register or sign in to comment