浏览代码

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)
 {
     while (!*(int volatile *)data) {
-        ; /* SDL_Delay(10); */ /* do nothing */
+        SDL_Delay(10);
     }
     return 0;
 }