return;
}
- delete_engine_changed_event_invoker();
- g_engine_changed_event_invoker = ecore_timer_add(0.0, notify_engine_changed_event_by_invoker, static_cast<void *>(param));
+ ecore_main_loop_thread_safe_call_sync([](void *data) -> void * {
+ SLOG(LOG_INFO, vc_config_tag(), "[INFO] Register timer for engine changed event");
+ delete_engine_changed_event_invoker();
+ g_engine_changed_event_invoker = ecore_timer_add(0.0, notify_engine_changed_event_by_invoker, data);
+ return nullptr;
+ }, static_cast<void *>(param));
}
static inline void release_language_changed_cb_params(language_changed_cb_parameters_s *params)
params->before_lang = strdup(before_lang);
params->current_lang = strdup(current_lang);
- delete_language_changed_event_invoker();
- g_language_changed_event_invoker = ecore_timer_add(0.0, notify_language_changed_event_by_invoker, static_cast<void *>(params));
+ ecore_main_loop_thread_safe_call_sync([](void *data) -> void * {
+ SLOG(LOG_INFO, vc_config_tag(), "[INFO] Register timer for language changed event");
+ delete_language_changed_event_invoker();
+ g_language_changed_event_invoker = ecore_timer_add(0.0, notify_language_changed_event_by_invoker, data);
+ return nullptr;
+ }, static_cast<void *>(params));
}
static Eina_Bool notify_enabled_changed_event_by_invoker(void *data)
return;
}
- delete_enabled_changed_event_invoker();
- g_enabled_changed_event_invoker = ecore_timer_add(0.0, notify_enabled_changed_event_by_invoker, static_cast<void *>(param));
+ ecore_main_loop_thread_safe_call_sync([](void *data) -> void * {
+ SLOG(LOG_INFO, vc_config_tag(), "[INFO] Register timer for enabled changed event");
+ delete_enabled_changed_event_invoker();
+ g_enabled_changed_event_invoker = ecore_timer_add(0.0, notify_enabled_changed_event_by_invoker, data);
+ return nullptr;
+ }, static_cast<void *>(param));
}
static int initialize_config_info()