fix a missing lock problem accepted/tizen/unified/20240131.064048 accepted/tizen/unified/20240131.064152 accepted/tizen/unified/20240131.064244 accepted/tizen/unified/x/20240205.064131
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 29 Jan 2024 11:21:20 +0000 (20:21 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 29 Jan 2024 11:23:37 +0000 (20:23 +0900)
client/mdsc_subscribe.c
packaging/modes.spec

index ef93074dadf8d5c987bfe3984a62691a1520f3e5..8d0b96eda8263e35b3c50c47c93ff867cd16dfdd 100644 (file)
@@ -84,11 +84,11 @@ API modes_noti_ID modes_subscribe_mode_changes(modes_h handle, modes_noti_fn cb,
     data->cb = cb;
     data->user_data = user_data;
 
+    _mutex_lock(&handle->noti_mutex);
     if (NULL == handle->noti_cb_list)
         handle->noti_dbus_ID =
               g_signal_connect(handle->conn, "changed-mode", G_CALLBACK(_on_changed_mode), handle);
 
-    _mutex_lock(&handle->noti_mutex);
     handle->noti_cb_list = g_list_append(handle->noti_cb_list, data);
     _mutex_unlock(&handle->noti_mutex);
 
index e09e4bcf5cd9b339589721beace6c4e750309616..2672505ea27d3b5f94bd4211e51b396dcce9dd44 100644 (file)
@@ -123,7 +123,7 @@ mkdir -p "$gcno_obj_dir"
 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
 %endif
 
-# ÀÚµ¿ unittest ½ÇÇàÀ» À§ÇѠǥÁØ ½ÇÇà ½ºÅ©¸³Æ®
+# 자동 unittest 실행을 위한 표준 실행 스크립트
 cat << EOF > run-unittest.sh
 #!/bin/sh
 setup() {