Send new state to client synchornously 50/269250/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 12 Jan 2022 04:30:41 +0000 (13:30 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 20 Jan 2022 08:38:17 +0000 (17:38 +0900)
commitdde7125d3c36eb240512a6eb6e3067f726389014
tree9f55b982f43f9986929a13773d69cacfa3fe5464
parent1bc91f8f38240448dad95905baba9f7c0681f256
Send new state to client synchornously

Current code sends new state asynchornously using ecore timer in order to prohibit main loop
from being blocked. However, sending new state can be delayed by the event from
ecore_main_loop_thread_safe_call_async(). Callback registered by this function has higher priority
than the ecore timer callback. This may cause uninteded behavior on client side.

To prevent this situation, this patch sends new state synchornously. By this patch, client gets
new state immediately after stop player. Of course, IPC overhead can be added into
ttsd_server_play(), but the overhead is short enough.

Change-Id: Ia580edbd957d57a215d3d760fdcd8de54b73c49c
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_server.c