eocre animator - the anim thread is polled on shutdown use volatile
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 20 Oct 2016 13:24:40 +0000 (22:24 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 20 Oct 2016 22:40:34 +0000 (07:40 +0900)
we sit in a loop wating for animator thread to die on shutdown
(sleeping for 1000us), so make it a volatile so every check actually
checks and doesnt cache.

@fix

src/lib/ecore/ecore_anim.c

index dedea47..7f920ec 100644 (file)
@@ -67,7 +67,7 @@ static Eina_Bool animator_ran = EINA_FALSE;
 
 static int timer_fd_read = -1;
 static int timer_fd_write = -1;
-static Ecore_Thread *timer_thread = NULL;
+static volatile Ecore_Thread *timer_thread = NULL;
 static volatile int timer_event_is_busy = 0;
 
 static void