From 115460a93037ebe9f605b9534a7ce896040b032f Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 17 Mar 2023 20:58:01 +0100 Subject: [PATCH] torturethread: sleep a bit in SubThreadFunc to avoid starvation testtorture, built by MinGW from msys2, got blocked indefinitely. --- test/torturethread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/torturethread.c b/test/torturethread.c index 44e556c9e9..4b8eeba5a7 100644 --- a/test/torturethread.c +++ b/test/torturethread.c @@ -35,7 +35,7 @@ static int SDLCALL SubThreadFunc(void *data) { while (!*(int volatile *)data) { - ; /* SDL_Delay(10); */ /* do nothing */ + SDL_Delay(10); } return 0; }