Add timer for callbacks in main loop 65/291165/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 10 Apr 2023 09:06:35 +0000 (18:06 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 11 Apr 2023 05:19:43 +0000 (14:19 +0900)
commit65d4f917f9dc3bf7339a85a5610eebbe3d4144a1
treefa37114ec2eaded3b382fa5a3efd916183dff1e9
parentb9a763ff4246f7db5bf05d35b3de7a85dfe03769
Add timer for callbacks in main loop

- Issue:
When the app calls setting API in sub-thread, the changed callback can
not be invoked properly.

- Solution:
Most ecore API function properly works in main loop, and
ecore_timer_add() is also a functions of this kind. Therefore, if the app
calls setting API function in sub-thread, the changed event callbacks
can not be invoked. To solve this issue, this patch changes the ecore
timer registration logic. Through this patch, every timer will be added
in main loop by ecore_main_loop_thread_safe_call_sync().

Change-Id: I8ce976cf2b86b1c2a309ea887f17f1641b9e3f01
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/vc_config_mgr.cpp