torturethread: sleep a bit in SubThreadFunc to avoid starvation

testtorture, built by MinGW from msys2, got blocked indefinitely.
This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2023-03-21 02:19:19 +01:00
1 parent 6a9c692bb9
commit 115460a930
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ static int SDLCALL
SubThreadFunc(void *data)
{
while (!*(int volatile *)data) {
; /* SDL_Delay(10); */ /* do nothing */
SDL_Delay(10);
}
return 0;
}