Load engine when the first client is connected 31/279131/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 1 Aug 2022 05:27:54 +0000 (14:27 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 3 Aug 2022 01:44:54 +0000 (10:44 +0900)
commit4bea331dad4316bb24cb2971d0d1b9284b3f9e6d
tree237ea64e9386a86c69f46b5aa3229fc33c628252
parent40a98c98a6bf9dba0cf6e7212dcb71666af60e00
Load engine when the first client is connected

- Issue:
Engine loads model when the engine is initializing, so engine always has
to load model, even if engine application does not need to load model in
some case.

- Solution:
To solve this problem, first, we need to change the timing for loading
engine. This is because engine has no information about clients when
engine is initialzing. Without any clients information, engine can not
decide whether the engine needs to load model or not.
This patch changes the timing for loading engine to when the first client
information is received. Through this patch, engine already has client
information when engine has to decide model loading.

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