fix async enabled evas on a single core system.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Sep 2010 04:12:46 +0000 (04:12 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Sep 2010 04:12:46 +0000 (04:12 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@51876 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_pipe.c

index 6125bcb..82f53f4 100644 (file)
@@ -1617,6 +1617,8 @@ evas_common_pipe_load(void *data)
 }
 #endif
 
+static volatile int bval = 0;
+
 static void
 evas_common_pipe_image_load_do(void)
 {
@@ -1640,7 +1642,9 @@ evas_common_pipe_init(void)
 
        cpunum = eina_cpu_count();
        thread_num = cpunum;
-       if (thread_num == 1) return EINA_FALSE;
+// on  single cpu we still want this initted.. otherwise we block forever
+// waiting onm pthread barriers for async rendering on a single core!
+//     if (thread_num == 1) return EINA_FALSE;
 
        pthread_barrier_init(&(thbarrier[0]), NULL, thread_num + 1);
        pthread_barrier_init(&(thbarrier[1]), NULL, thread_num + 1);