- When callsing some protocol that causes wl_resource_post_event,
if the main thread locks the connection_mutex and becomes runnable status
due to CPU contention, the input thread waits at the mutex lock
inside wayland.
- e_comp_wl_connection_mutex_lock() will call boostig API
for main thread when its trylock has been failed.
Change-Id: I320d910f1307d6a895943fc89f369f607c9ca850
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
EINA_SAFETY_ON_NULL_RETURN(surface);
key = key - 8;
+ e_comp_wl_connection_lock();
e_keyrouter_wl_event_surface_send(surface, key, TIZEN_KEYROUTER_MODE_NONE);
+ e_comp_wl_connection_unlock();
}
EINTERN void
if (surface && !focused)
{
+ e_comp_wl_connection_lock();
e_keyrouter_wl_event_surface_send(surface, ev->keycode, TIZEN_KEYROUTER_MODE_NONE);
+ e_comp_wl_connection_unlock();
}
if (e_config->key_input_ttrace_enable)