Samuel Thibault 9 gadi atpakaļ
vecāks
revīzija
8dc01b0cd9
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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 */