Преглед изворни кода

torturethread: sleep a bit in SubThreadFunc to avoid starvation

testtorture, built by MinGW from msys2, got blocked indefinitely.
Anonymous Maarten пре 2 година
родитељ
комит
115460a930
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      test/torturethread.c

+ 1 - 1
test/torturethread.c

@@ -35,7 +35,7 @@ static int SDLCALL
 SubThreadFunc(void *data)
 SubThreadFunc(void *data)
 {
 {
     while (!*(int volatile *)data) {
     while (!*(int volatile *)data) {
-        ; /* SDL_Delay(10); */ /* do nothing */
+        SDL_Delay(10);
     }
     }
     return 0;
     return 0;
 }
 }