Fix thread safety issue of ecore API 38/171238/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 1 Feb 2018 12:08:52 +0000 (21:08 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 28 Feb 2018 00:57:15 +0000 (00:57 +0000)
Change-Id: Ia244d747b595c6d610d84d4ebc44a85a0f95ca30
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
(cherry picked from commit 45d48cfa36cb7dc5da5fd26a4d5b127525e580db)

client/vc_widget.c

index afe19f0..ad6908d 100644 (file)
@@ -377,10 +377,12 @@ static Eina_Bool __vc_widget_connect_daemon(void *data)
 
        SLOG(LOG_INFO, TAG_VCW, "@@@ [Widget] Connect daemon");
 
+       ecore_thread_main_loop_begin();
        if (NULL == g_focus_in_handler)
                g_focus_in_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_IN, __focus_changed_cb, NULL);
        if (NULL == g_focus_out_handler)
                g_focus_out_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_OUT, __focus_changed_cb, NULL);
+       ecore_thread_main_loop_end();
 
        char appid[1024] = {'\0',};
        aul_app_get_appid_bypid(getpid(), appid, sizeof(appid) - 1);