Samuel Thibault 9 rokov pred
rodič
commit
8dc01b0cd9
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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 */
+	/* This avoids typical 10ms pauses when the application thread tries to submit tasks. */
 	while (1)
 	{
 		/* Tell releaser to wake us */