if (!scan_queue2) scan_queue2 = g_async_queue_new();
if (!reg_queue2) reg_queue2 = g_async_queue_new();
if (!storage_queue2) storage_queue2 = g_async_queue_new();
-
- /*Init mutex variable*/
- g_mutex_init(&scan_req_mutex2);
-
}
void msc_deinit_scanner(void)
if (scan_queue2) g_async_queue_unref(scan_queue2);
if (reg_queue2) g_async_queue_unref(reg_queue2);
if (storage_queue2) g_async_queue_unref(storage_queue2);
-
- /*Clear db mutex variable*/
- g_mutex_clear(&scan_req_mutex2);
-
}
int msc_push_scan_request(ms_scan_type_e scan_type, ms_comm_msg_s *recv_msg)