comparison src/timer/unix/SDL_systimer.c @ 2735:204be4fc2726

Final merge of Google Summer of Code 2008 work... Port SDL 1.3 to the Nintendo DS by Darren Alton, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Wed, 27 Aug 2008 15:10:03 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2734:dd25eabe441c 2735:204be4fc2726
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