Skip to content

Commit

Permalink
torturethread: sleep a bit in SubThreadFunc to avoid starvation
Browse files Browse the repository at this point in the history
testtorture, built by MinGW from msys2, got blocked indefinitely.
  • Loading branch information
madebr committed Mar 21, 2023
1 parent 6a9c692 commit 115460a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/torturethread.c
Expand Up @@ -35,7 +35,7 @@ static int SDLCALL
SubThreadFunc(void *data)
{
while (!*(int volatile *)data) {
; /* SDL_Delay(10); */ /* do nothing */
SDL_Delay(10);
}
return 0;
}
Expand Down

0 comments on commit 115460a

Please sign in to comment.