Fixed the deadlock issue. 10/116410/1
authorWonkeun Oh <wonkeun.oh@samsung.com>
Fri, 24 Feb 2017 01:36:27 +0000 (10:36 +0900)
committerWonkeun Oh <wonkeun.oh@samsung.com>
Fri, 24 Feb 2017 07:33:55 +0000 (16:33 +0900)
commitab2660fc509714ed3dbd65cb077dbdcbea55e3fa
treec4304673690f13ae6c5462228654379e45e85983
parent20bc0e45b3ff16b98eecd9c95906a357eed59f61
Fixed the deadlock issue.

If the default event queue is empty, the 'wl_display_dispatch' function blocks until there are events to be read from the display fd.
So, it might cause the deadlock state of the application's process, If the event queue is empty continually because of some problem.

As for the 'wl_display_roundtrip' function,
This function blocks until the server has processed all currently issued requests by sending a request to the display server and waiting for a reply before returning.

Plus, these functions return the -1 on failure such as closed connection case. It need to be checked

Change-Id: If1e007196945422433d66bf47de58f1809f0535d
ism/extras/wayland_immodule/wayland_imcontext.c