Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_pipe.c 


Log Message:


threads back on - try this.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_pipe.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evas_pipe.c 16 Nov 2006 03:20:24 -0000      1.3
+++ evas_pipe.c 18 Nov 2006 02:51:27 -0000      1.4
@@ -132,6 +132,7 @@
        thread_num = cpunum;
        if (thread_num == 1) return;
        pthread_barrier_init(&(thbarrier[0]), NULL, thread_num + 1);
+       pthread_barrier_init(&(thbarrier[1]), NULL, thread_num + 1);
        for (i = 0; i < thread_num; i++)
          {
             pthread_attr_t attr;
@@ -179,9 +180,9 @@
 //          printf("START %i\n", i);
      }
    /* tell worker threads to start */
-   pthread_barrier_init(&(thbarrier[1]), NULL, thread_num + 1);
+//   pthread_barrier_init(&(thbarrier[1]), NULL, thread_num + 1);
    pthread_barrier_wait(&(thbarrier[0]));
-   pthread_barrier_destroy(&(thbarrier[0]));
+//   pthread_barrier_destroy(&(thbarrier[0]));
 #endif   
 }
 
@@ -197,9 +198,9 @@
    if (thread_num > 1)
      {
        /* sync worker threads */
-       pthread_barrier_init(&(thbarrier[0]), NULL, thread_num + 1);
+//     pthread_barrier_init(&(thbarrier[0]), NULL, thread_num + 1);
        pthread_barrier_wait(&(thbarrier[1]));
-       pthread_barrier_destroy(&(thbarrier[1]));
+//     pthread_barrier_destroy(&(thbarrier[1]));
 //     printf("DONE\n");
      }
    else



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to