mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 23:10:58 +00:00
torturethread: sleep a bit in SubThreadFunc to avoid starvation
testtorture, built by MinGW from msys2, got blocked indefinitely.
This commit is contained in:
parent
6a9c692bb9
commit
115460a930
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue