From 147ff8bd11911711041d4531ab66454453920d59 Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Mon, 20 Jan 2020 10:35:16 +0900 Subject: [PATCH] Fix mutex name Change-Id: I56b715c53d7c8c525347a7dfc85f18c3514a977d Signed-off-by: sooyeon.kim (cherry picked from commit bc220259cd31cee10b1f71941078517df793ff8d) --- common/vc_config_mgr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/vc_config_mgr.c b/common/vc_config_mgr.c index 44ea696..8dda6b7 100644 --- a/common/vc_config_mgr.c +++ b/common/vc_config_mgr.c @@ -535,16 +535,16 @@ static int __vc_config_mgr_register_engine_config_updated_event(const char* path SLOG(LOG_WARN, vc_config_tag(), "[WARNING] Fail to set non-block mode"); } - pthread_mutex_lock(&vc_config_mgr_mutex); + pthread_mutex_lock(&vc_config_engine_mutex); g_ino_list = g_list_append(g_ino_list, ino); - pthread_mutex_unlock(&vc_config_mgr_mutex); + pthread_mutex_unlock(&vc_config_engine_mutex); return 0; } static int __vc_config_mgr_unregister_engine_config_updated_event() { - pthread_mutex_lock(&vc_config_mgr_mutex); + pthread_mutex_lock(&vc_config_engine_mutex); /* delete all inotify variable */ if (0 < g_list_length(g_ino_list)) { @@ -568,7 +568,7 @@ static int __vc_config_mgr_unregister_engine_config_updated_event() iter = g_list_first(g_ino_list); } } - pthread_mutex_unlock(&vc_config_mgr_mutex); + pthread_mutex_unlock(&vc_config_engine_mutex); return 0; } -- 2.7.4