Mercurial > sdl-ios-xcode
comparison src/timer/unix/SDL_systimer.c @ 2669:e27bdcc80744 gsoc2008_nds
First commit. Added header configs for DS as well as a Makefile. Initial work on framebuffer video driver, currently not functioning as desired.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Tue, 10 Jun 2008 06:45:39 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2668:bb3241de289e | 2669:e27bdcc80744 |
---|---|
135 tv.tv_sec = ms / 1000; | 135 tv.tv_sec = ms / 1000; |
136 tv.tv_usec = (ms % 1000) * 1000; | 136 tv.tv_usec = (ms % 1000) * 1000; |
137 | 137 |
138 was_error = select(0, NULL, NULL, NULL, &tv); | 138 was_error = select(0, NULL, NULL, NULL, &tv); |
139 #endif /* HAVE_NANOSLEEP */ | 139 #endif /* HAVE_NANOSLEEP */ |
140 } | 140 } while (was_error && (errno == EINTR)); |
141 while (was_error && (errno == EINTR)); | |
142 #endif /* SDL_THREAD_PTH */ | 141 #endif /* SDL_THREAD_PTH */ |
143 } | 142 } |
144 | 143 |
145 #ifdef USE_ITIMER | 144 #ifdef USE_ITIMER |
146 | 145 |