return false;
}
- CAM_LOG_INFO("t:%d", type);
+ CAM_LOG_INFO("t:%d [%s]", type, thread_name);
handler_info->type = type;
handler_info->queue = g_queue_new();
/* message handler thread */
if (!__create_msg_handler_thread(&cb_info->msg_handler_info,
- CAMERA_MESSAGE_HANDLER_TYPE_GENERAL, "camera_msg_handler", cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_GENERAL, "cam:msg_handler", cb_info)) {
CAM_LOG_ERROR("msg_handler_info failed");
goto ErrorExit;
}
/* message handler thread for capture callback */
if (!__create_msg_handler_thread(&cb_info->capture_cb_info,
- CAMERA_MESSAGE_HANDLER_TYPE_CAPTURE_CB, "camera_msg_handler:capture_cb", cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_CAPTURE_CB, "cam:capture_cb", cb_info)) {
CAM_LOG_ERROR("capture_cb_info failed");
goto ErrorExit;
}
/* message receive thread */
g_atomic_int_set(&cb_info->msg_recv_running, 1);
- cb_info->msg_recv_thread = g_thread_try_new("camera_msg_recv",
+ cb_info->msg_recv_thread = g_thread_try_new("cam:msg_recv",
__camera_msg_recv_func, (gpointer)cb_info, NULL);
if (cb_info->msg_recv_thread == NULL) {
CAM_LOG_ERROR("message receive thread creation failed");
if (current_state == CAMERA_STATE_CREATED) {
if (!__create_msg_handler_thread(&pc->cb_info->preview_cb_info,
- CAMERA_MESSAGE_HANDLER_TYPE_PREVIEW_CB, "camera_msg_handler:preview_cb", pc->cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_PREVIEW_CB, "cam:preview_cb", pc->cb_info)) {
CAM_LOG_ERROR("preview_cb_info failed");
return CAMERA_ERROR_INVALID_OPERATION;
}