Bluedroid協議棧HCI線程資料處理流程分析

來源:互聯網
上載者:User

標籤:enable   協議棧   cti   workqueue   col   name   tin   ...   工作   

在藍芽enable的過程中會進行多個線程的建立以及將線程與隊列進行綁定的工作。該篇文章主要分析一下處理hci資料這個 線程。

void BTU_StartUp(void){...    btu_bta_msg_queue = fixed_queue_new(SIZE_MAX);    btu_general_alarm_hash_map = hash_map_new(BTU_GENERAL_ALARM_HASH_MAP_SIZE,            hash_function_pointer, NULL, (data_free_fn)alarm_free, NULL);    btu_general_alarm_queue = fixed_queue_new(SIZE_MAX);    btu_oneshot_alarm_hash_map = hash_map_new(BTU_ONESHOT_ALARM_HASH_MAP_SIZE,            hash_function_pointer, NULL, (data_free_fn)alarm_free, NULL);    btu_oneshot_alarm_queue = fixed_queue_new(SIZE_MAX);    btu_l2cap_alarm_hash_map = hash_map_new(BTU_L2CAP_ALARM_HASH_MAP_SIZE,            hash_function_pointer, NULL, (data_free_fn)alarm_free, NULL);    btu_l2cap_alarm_queue = fixed_queue_new(SIZE_MAX);    bt_workqueue_thread = thread_new(BT_WORKQUEUE_NAME);//該線程為處理各個task 的線程,之後會與多個隊資料行繫結
// Continue startup on bt workqueue thread. thread_post(bt_workqueue_thread, btu_task_start_up, NULL);//在bt_workqueue_thread中繼續startup的工作
return; 
}

 

Bluedroid協議棧HCI線程資料處理流程分析

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.