Samuel Thibault 9 年之前
父节点
当前提交
8dc01b0cd9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/common/thread.c

+ 1 - 0
src/common/thread.c

@@ -753,6 +753,7 @@ int starpu_pthread_spin_lock(starpu_pthread_spinlock_t *lock)
 	}
 	}
 
 
 	/* We have spent enough time with spinning, let's block */
 	/* We have spent enough time with spinning, let's block */
+	/* This avoids typical 10ms pauses when the application thread tries to submit tasks. */
 	while (1)
 	while (1)
 	{
 	{
 		/* Tell releaser to wake us */
 		/* Tell releaser to wake us */