N3DS: Backport semaphore fixes from #6776.

This commit is contained in:
Pierre Wendling authored and Sam Lantinga committed 2022-12-11 17:09:28 -08:00
1 parent b79732b967
commit e580e087ff
4 files changed
+42 -25

No files matched your search

+2
View File
@@ -210,6 +210,8 @@ TestOverheadContended(SDL_bool try_wait)
}
/* Make sure threads consumed everything */
while (SDL_SemValue(sem)) {
/* Friendlier with cooperative threading models */
SDL_Delay(1);
}
}
end_ticks = SDL_GetTicks();