Mercurial > sdl-ios-xcode
diff src/timer/linux/SDL_systimer.c @ 1:cf2af46e9e2a
Changes since SDL 1.2.0 release
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 26 Apr 2001 16:50:19 +0000 |
parents | 74212992fb08 |
children | 39877400bd1e |
line wrap: on
line diff
--- a/src/timer/linux/SDL_systimer.c Thu Apr 26 16:45:43 2001 +0000 +++ b/src/timer/linux/SDL_systimer.c Thu Apr 26 16:50:19 2001 +0000 @@ -36,6 +36,10 @@ #include "SDL_timer.h" #include "SDL_timer_c.h" +#if _POSIX_THREAD_SYSCALL_SOFT +#include <pthread.h> +#endif + #if defined(DISABLE_THREADS) || defined(FORK_HACK) #define USE_ITIMER #endif @@ -96,6 +100,9 @@ do { errno = 0; +#if _POSIX_THREAD_SYSCALL_SOFT + pthread_yield_np(); +#endif #ifdef USE_NANOSLEEP tv.tv_sec = elapsed.tv_sec; tv.tv_nsec = elapsed.tv_nsec;