瀏覽代碼

document that nready starts at 0

Samuel Thibault 13 年之前
父節點
當前提交
9143157b9f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);