summaryrefslogtreecommitdiffstats
path: root/osdep/timer-darwin.c
Commit message (Collapse)AuthorAgeFilesLines
* Split mpvcore/ into common/, misc/, bstr/wm42013-12-171-1/+1
|
* core: move contents to mpvcore (2/2)Stefano Pigozzi2013-08-061-1/+1
| | | | Followup commit. Fixes all the files references.
* timer: refactor, add 64 bit timer functionwm42013-05-261-57/+9
| | | | | | | | | | | | | | Make OS specific timer code export a mp_raw_time_us() function, and add generic implementations of GetTimer()/GetTimerMS() using this function. New mpv code is supposed to call mp_time_us() in situations where precision is absolutely needed, or mp_time_s() otherwise. Make it so that mp_time_us() will return a value near program start. We don't set it to 0 though to avoid confusion with relative vs. absolute time. Instead, pick an arbitrary offset. Move the test program in timer-darwin.c to timer.c, and modify it to work with the generic timer functions.
* Rename directories, move files (step 2 of 2)wm42012-11-121-1/+1
| | | | | | | | | | | | Finish renaming directories and moving files. Adjust all include statements to make the previous commit compile. The two commits are separate, because git is bad at tracking renames and content changes at the same time. Also take this as an opportunity to remove the separation between "common" and "mplayer" sources in the Makefile. ("common" used to be shared between mplayer and mencoder.)
* timer: remove timer_namewm42012-09-071-3/+0
| | | | This was unreferenced and useless.
* osdep: tweak some #includesdiego2011-01-311-0/+1
| | | | | | Add/remove a few standard header #includes in osdep files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32762 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge svn changes up to r30732Uoti Urpala2010-03-101-1/+1
|\
| * Mark sleep_accurate() as static, it is only used within the file.diego2010-02-221-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30715 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-7/+7
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-4/+4
| |
* | Merge svn changes up to r29277Uoti Urpala2009-05-081-3/+3
|\|
| * Add missing 'void' to parameterless function declarations.diego2009-05-041-4/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29254 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove useless variable startup_time, since we do not need it any more.ulion2008-05-051-5/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26672 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r26587Uoti Urpala2008-04-291-4/+2
|\| | | | | | | | | | | | | | | Conflicts: Makefile configure osdep/timer-darwin.c
| * Force to uint64_t first to avoid direct conversion from double to unsigned int.ulion2008-04-281-4/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26582 b3059339-0415-0410-9bf9-f77b7e298cf2
* | timers: Remove GetRelativeTime()Uoti Urpala2008-04-281-19/+2
| | | | | | | | | | | | | | | | | | | | Move the code calculating time delta since last query out of the platform-specific drivers and into mplayer.c. The platform-specific drivers now return absolute values only. The way the code in timer-darwin.c uses doubles in wrapping arithmetic looks questionable and this change might make problems in it more visible.
* | osdep: Change timer_name to a saner typeUoti Urpala2008-04-281-1/+1
|/ | | | | timer_name was a (non-const) pointer to a const char array. Make the symbol the array itself.
* main() --> main(void)diego2007-11-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25128 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix GetTimerMS() discontinuous return value bug caused by GetTimer() overflowulion2007-10-231-1/+2
| | | | | | | on darwin. This bug will cause osd stuck on darwin. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24843 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include paths, -I.. is in CFLAGS.diego2005-11-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16986 b3059339-0415-0410-9bf9-f77b7e298cf2
* use sleep_accurate darwin timernplourde2005-04-271-1/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15276 b3059339-0415-0410-9bf9-f77b7e298cf2
* repace call to sleep_accurate to usleep which fix hang while using -cache ↵nplourde2004-10-271-9/+1
| | | | | | option on osx git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13777 b3059339-0415-0410-9bf9-f77b7e298cf2
* Native darwin timer update.wight2004-08-041-106/+52
| | | | | | | Patch by Dan Christiansen <danchr@daimi.au.dk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12955 b3059339-0415-0410-9bf9-f77b7e298cf2
* disable buggy code, patch by Romain Dolbeaualex2004-01-281-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11868 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lalex2003-08-031-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10516 b3059339-0415-0410-9bf9-f77b7e298cf2
* Precise timer for Darwin (it's more accurate than timer-macosx.c)alex2003-05-211-0/+169
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10149 b3059339-0415-0410-9bf9-f77b7e298cf2