Reduce length of thread name 20/298320/1
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 6 Sep 2023 01:42:10 +0000 (10:42 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 6 Sep 2023 01:42:10 +0000 (10:42 +0900)
- 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 <jm80.yang@samsung.com>
packaging/capi-media-recorder.spec
src/recorder.c

index 63f8fbd..d3da553 100644 (file)
@@ -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
index 221c400..66f5f5a 100644 (file)
@@ -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");