Make signal test more robust wrt scheduling
This commit is contained in:
parent
b8f88c035a
commit
349dccd46d
|
@ -414,7 +414,11 @@ static void stress_test()
|
||||||
/* stop emitting signals */
|
/* stop emitting signals */
|
||||||
printf("deactivate sender\n");
|
printf("deactivate sender\n");
|
||||||
sender->idle();
|
sender->idle();
|
||||||
timer.msleep(FINISH_IDLE_TIME);
|
|
||||||
|
while (handler->receive_cnt() < sender->submit_cnt()) {
|
||||||
|
printf("waiting for signals still in flight...");
|
||||||
|
timer.msleep(FINISH_IDLE_TIME);
|
||||||
|
}
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("sender submitted a total of %d signals\n", sender->submit_cnt());
|
printf("sender submitted a total of %d signals\n", sender->submit_cnt());
|
||||||
|
|
Loading…
Reference in New Issue