[MPlayer-dev-eng] [PATCH] use timer-lx.c on darwin & osx
Chris Roccati
roccati at pobox.com
Tue Apr 26 22:04:54 CEST 2005
On 26 Apr 2005, at 19:55, Arpi wrote:
> i'm against.
> maybe as an option...
> timer-osx uses a much more precise timer, than linux's usleep
> thing which dosnt work far as accurate on osx as on linux.
> (on linux it's mostly using /dev/rtc to do the job, but on
> osx it doesnt exists so it will fallback to inaccurate usleep)
OSX also has nanosleep (which WILL be used by timer-lx.c, as
HAVE_NANOSLEEP is set by configure).
Besides, The current implementation of usec_sleep() under darwin
actually UNCONDITIONALLY uses usleep() anyway:
/* wrapper for MPlayer G1 */
int usec_sleep(int usec_delay)
{
return usleep(usec_delay);
}
More information about the MPlayer-dev-eng
mailing list