Pārlūkot izejas kodu

Try to redruce on the state of an empty list

Samuel Thibault 8 gadi atpakaļ
vecāks
revīzija
c1b913a2b2
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      tests/model-checking/prio_list.c

+ 3 - 0
tests/model-checking/prio_list.c

@@ -133,6 +133,9 @@ int worker(int argc STARPU_ATTRIBUTE_UNUSED, char *argv[])
 			check_list_prio(&mylist[l]);
 			xbt_mutex_release(mutex[l]);
 		}
+
+		/* horrible way to wait for list getting empty */
+		MSG_process_sleep(1000);
 	}
 
 	return 0;