cell: comments
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 01:09:50 +0000 (19:09 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 01:09:50 +0000 (19:09 -0600)
src/gallium/drivers/cell/ppu/cell_spu.c

index 2df90fdcb771ddaa485f22a747e4c69b616db023..9508227e29809f53c6cca362fd440c140f6e87a4 100644 (file)
@@ -45,6 +45,9 @@ helpful headers:
 */
 
 
+/**
+ * Cell/SPU info that's not per-context.
+ */
 struct cell_global_info cell_global;
 
 
@@ -149,8 +152,10 @@ cell_start_spus(struct cell_context *cell)
          exit(1);
       }
       
-      pthread_create(&cell_global.spe_threads[i], NULL, &cell_thread_function,
-                    &cell_global.inits[i]);
+      pthread_create(&cell_global.spe_threads[i], /* returned thread handle */
+                     NULL,                        /* pthread attribs */
+                     &cell_thread_function,       /* start routine */
+                    &cell_global.inits[i]);      /* thread argument */
    }
 }