mirror of
https://github.com/yawut/SDL.git
synced 2026-09-03 14:45:13 -05:00
Changes since SDL 1.2.0 release
This commit is contained in:
@@ -36,6 +36,10 @@ static char rcsid =
|
||||
#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 @@ void SDL_Delay (Uint32 ms)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user