Explorar el Código

document that nready starts at 0

Samuel Thibault hace 14 años
padre
commit
9143157b9f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/task.c

+ 1 - 1
src/core/task.c

@@ -32,7 +32,7 @@
 /* TODO we could make this hierarchical to avoid contention ? */
 static pthread_cond_t submitted_cond = PTHREAD_COND_INITIALIZER;
 static pthread_mutex_t submitted_mutex = PTHREAD_MUTEX_INITIALIZER;
-static long int nsubmitted = 0, nready;
+static long int nsubmitted = 0, nready = 0;
 
 static void _starpu_increment_nsubmitted_tasks(void);