Change the priority of the timeout source 37/257037/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 18 Apr 2021 23:22:30 +0000 (08:22 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 18 Apr 2021 23:22:30 +0000 (08:22 +0900)
The priority is changed to G_PRIORITY_HIGH.

Change-Id: I49927f8c79ef3d3d26e4a7fb260c6f7c3ca4a9d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_main.c

index 5e818077eedf07271a26555fee6316976caf0a43..37ab9133204ede8a61d0e2c9234fe6fa14da0aef 100644 (file)
@@ -442,9 +442,10 @@ EXPORT int amd_main(int argc, char *argv[])
        GMainLoop *mainloop = NULL;
        guint timer;
 
-       timer = g_timeout_add_seconds(10, __watchdog_cb, NULL);
+       timer = g_timeout_add_seconds_full(G_PRIORITY_HIGH, 10, __watchdog_cb,
+                       NULL, NULL);
        if (timer == 0) {
-               _E("g_timeout_add_seconds() is failed");
+               _E("g_timeout_add_seconds_full() is failed");
                return -1;
        }