Mercurial > mplayer.hg
comparison osdep/timer-darwin.c @ 30673:cfb6e0b4e2bd
Mark sleep_accurate() as static, it is only used within the file.
author | diego |
---|---|
date | Mon, 22 Feb 2010 21:53:06 +0000 |
parents | 0f1b5b68af32 |
children | 1453fc56d49c |
comparison
equal
deleted
inserted
replaced
30672:4400019c6ae2 | 30673:cfb6e0b4e2bd |
---|---|
33 const char *timer_name = "Darwin accurate"; | 33 const char *timer_name = "Darwin accurate"; |
34 | 34 |
35 | 35 |
36 | 36 |
37 /* the core sleep function, uses floats and is used in MPlayer G2 */ | 37 /* the core sleep function, uses floats and is used in MPlayer G2 */ |
38 float sleep_accurate(float time_frame) | 38 static float sleep_accurate(float time_frame) |
39 { | 39 { |
40 uint64_t deadline = time_frame / timebase_ratio + mach_absolute_time(); | 40 uint64_t deadline = time_frame / timebase_ratio + mach_absolute_time(); |
41 | 41 |
42 mach_wait_until(deadline); | 42 mach_wait_until(deadline); |
43 | 43 |