From: Jeongmo Yang Date: Wed, 6 Sep 2023 01:42:10 +0000 (+0900) Subject: Reduce length of thread name X-Git-Tag: accepted/tizen/8.0/unified/20231005.092827~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fapi%2Frecorder.git;a=commitdiff_plain;h=523299fa92faaa7eb14550531aab2c228eea2df2 Reduce length of thread name - According to glib manual, some systems restrict the length of thread name to 16 bytes. Previously, the thread name for recorder API was not shown properly(checked by "ps -eTl"), and it has been fixed by reducing length of thread name. [Version] 0.3.40 [Issue Type] Update Change-Id: I47a1207fc55f0ab8be742322d94d45ad7d05534b Signed-off-by: Jeongmo Yang --- diff --git a/packaging/capi-media-recorder.spec b/packaging/capi-media-recorder.spec index 63f8fbd..d3da553 100644 --- a/packaging/capi-media-recorder.spec +++ b/packaging/capi-media-recorder.spec @@ -1,6 +1,6 @@ Name: capi-media-recorder Summary: A Recorder API -Version: 0.3.39 +Version: 0.3.40 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/recorder.c b/src/recorder.c index 221c400..66f5f5a 100644 --- a/src/recorder.c +++ b/src/recorder.c @@ -1237,21 +1237,21 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd) /* message handler thread */ if (!__create_msg_handler_thread(&cb_info->msg_handler_info, - _RECORDER_MESSAGE_HANDLER_TYPE_GENERAL, "recorder_msg_handler", cb_info)) { + _RECORDER_MESSAGE_HANDLER_TYPE_GENERAL, "rec:msg_handler", cb_info)) { REC_LOG_ERROR("msg_handler_info failed"); goto ErrorExit; } /* message handler thread for audio stream callback */ if (!__create_msg_handler_thread(&cb_info->audio_stream_cb_info, - _RECORDER_MESSAGE_HANDLER_TYPE_AUDIO_STREAM_CB, "recorder_msg_handler:audio_stream_cb", cb_info)) { + _RECORDER_MESSAGE_HANDLER_TYPE_AUDIO_STREAM_CB, "rec:astream_cb", cb_info)) { REC_LOG_ERROR("audio_stream_cb_info failed"); goto ErrorExit; } /* message handler thread for muxed stream callback */ if (!__create_msg_handler_thread(&cb_info->muxed_stream_cb_info, - _RECORDER_MESSAGE_HANDLER_TYPE_MUXED_STREAM_CB, "recorder_msg_handler:muxed_stream_cb", cb_info)) { + _RECORDER_MESSAGE_HANDLER_TYPE_MUXED_STREAM_CB, "rec:mstream_cb", cb_info)) { REC_LOG_ERROR("muxed_stream_cb_info failed"); goto ErrorExit; } @@ -1260,7 +1260,7 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd) /* message receive thread */ g_atomic_int_set(&cb_info->msg_recv_running, 1); - cb_info->msg_recv_thread = g_thread_try_new("recorder_msg_recv", + cb_info->msg_recv_thread = g_thread_try_new("rec:msg_recv", _recorder_msg_recv_func, (gpointer)cb_info, NULL); if (cb_info->msg_recv_thread == NULL) { REC_LOG_ERROR("message receive thread creation failed");