resource: display: Add a display monitor thread to deal with multiple clients 18/279418/9
authorSung-hun Kim <sfoon.kim@samsung.com>
Tue, 9 Aug 2022 05:45:55 +0000 (14:45 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Aug 2022 08:54:34 +0000 (17:54 +0900)
commit7332663441031588dbc3cbf6de9d4c75d90f02a5
treee00d5186d1d16161a9ce2502b50fc3f1ebb47317
parent262596e61b09dbaf32a8f4de62f56163826f869e
resource: display: Add a display monitor thread to deal with multiple clients

When multiple clients request to get fps concurrently,
unacceptable delays (upto tens of seconds for hundred
clients) are incurred. I guess that the dbus function
g_dbus_connection_send_message_with_reply_sync() cannot
deal with multiple concurrent calls.

This patch added a monitor thread to read current fps
value via dbus. The thread shares read fps value to
clients. By doing so, multiple clients can get the fps
value without delays.

Change-Id: I726092658ef79af3610baa6fa356d8a54c6cf299
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
src/resource/resource-display.c