return ret;
if (mtp_ctx->c_thread != NULL) {
+ MTP_LOGI("controller thread join start");
g_thread_join(mtp_ctx->c_thread);
g_thread_unref(mtp_ctx->c_thread);
+ MTP_LOGI("controller thread join end");
}
if (mtp_ctx->usb_event_thread != NULL) {
+ MTP_LOGI("usb event thread join start");
g_thread_join(mtp_ctx->usb_event_thread);
g_thread_unref(mtp_ctx->usb_event_thread);
+ MTP_LOGI("usb event thread join end");
}
- if (mtp_ctx->usb_ctx != NULL)
+ if (mtp_ctx->usb_ctx != NULL) {
+ MTP_LOGI("call libusb_exit");
libusb_exit(mtp_ctx->usb_ctx);
+ }
g_main_loop_unref(mtp_ctx->main_loop);
g_free(mtp_ctx);
g_main_loop_run(mtp_ctx->main_loop);
EXIT:
+ MTP_LOGI("mtp initiator exit process start"); //LCOV_EXCL_LINE
if (mtp_ctx != NULL && mtp_ctx->device_list != NULL
&& mtp_ctx->device_list->threads != NULL) {
g_thread_pool_free(mtp_ctx->device_list->threads, true, true);