should init event_loop before vblank 30/170630/1
authorBoram Park <boram1288.park@samsung.com>
Wed, 21 Feb 2018 05:39:28 +0000 (14:39 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 21 Feb 2018 05:40:05 +0000 (14:40 +0900)
when initing event_loop, thread's find_funcs table is also inited. This should
be done before initing others.

Change-Id: Iae6c0e44b3f00c0b6a5aa77bbdbee158ce74baa0

src/tdm.c

index 7fabc4a..b0d1f40 100644 (file)
--- a/src/tdm.c
+++ b/src/tdm.c
@@ -963,10 +963,6 @@ tdm_display_init(tdm_error *error)
        TDM_DBG("prepare init time: %.3f ms", (stamp2 - stamp1) * 1000.0);
        stamp1 = stamp2;
 
-       ret = tdm_vblank_init(private_display);
-       if (ret != TDM_ERROR_NONE)
-               goto failed_vblank;
-
        ret = tdm_event_loop_init(private_display);
        if (ret != TDM_ERROR_NONE)
                goto failed_event;
@@ -975,6 +971,10 @@ tdm_display_init(tdm_error *error)
        TDM_INFO("event loop init time: %.3f ms", (stamp2 - stamp1) * 1000.0);
        stamp1 = stamp2;
 
+       ret = tdm_vblank_init(private_display);
+       if (ret != TDM_ERROR_NONE)
+               goto failed_vblank;
+
        ret = tdm_output_init(private_display);
        if (ret != TDM_ERROR_NONE)
                goto failed_load;