mpv/osdep
wm4 d8dd9a6725 threads: add function to calculate deadline for timed waits
Usually, you have to call pthread_cond_timedwait() in a loop (because it
can wake up sporadically). If this function is used by another higher
level function, which uses a relative timeout, we actually have to
reduce the timeout on each iteration - or, simpler, compute the
"deadline" at the beginning of the function, and always pass the same
absolute time to the waiting function.

Might be unsafe if the system time is changed. On the other hand, this
is a fundamental race condition with these APIs.
2014-01-31 22:17:43 +01:00
..
ar HIDRemote: remove OS X version checks 2013-09-17 20:44:54 +02:00
glob-win.c
glob.h Reduce recursive config.h inclusions in headers 2013-12-18 17:12:21 +01:00
io.c io/win32: move mp_attach_console to terminal-win.c 2014-01-16 11:25:52 +01:00
io.h io/win32: move mp_attach_console to terminal-win.c 2014-01-16 11:25:52 +01:00
macosx_application.h cocoa: remove usage of mp_fifo 2013-07-03 22:25:45 +02:00
macosx_application.m cocoa: sort files opened from Finder the same way Finder does 2014-01-20 09:06:30 +01:00
macosx_application_objc.h cocoa: handle files drag and drop on the player video view 2014-01-04 17:29:53 +01:00
macosx_compat.h OSX: fix compilation with 10.7 SDK 2013-06-19 21:24:26 +02:00
macosx_events.h Move mpvcore/input/ to input/ 2013-12-17 01:23:09 +01:00
macosx_events.m Fix OSX build; remove all remaining mpvcore references 2013-12-17 08:44:21 +01:00
mpv.exe.manifest win32: edit resource files, in particular set CompanyName 2013-09-23 01:44:09 +02:00
mpv.rc Update copyright year 2014-01-01 00:00:00 +01:00
numcores.c
numcores.h
path-macosx.m path-macosx: attempt to fix build 2013-12-22 01:36:45 +01:00
path-win.c Windows: use roaming AppData instead of local 2014-01-06 13:44:48 +01:00
path.h path lookup functions: mp_msg conversions 2013-12-21 21:43:17 +01:00
priority.c osdep/priority: drop message output when setting priority 2013-12-21 20:50:11 +01:00
priority.h
terminal-unix.c terminal-unix: fix terminfo/termcap name for cursor up 2014-01-14 17:37:40 +01:00
terminal-win.c w32: use the w32_common keymap in terminal-win too 2014-01-19 14:42:15 +01:00
terminal.h player: redo terminal OSD and status line handling 2014-01-13 20:08:13 +01:00
threads.c threads: add function to calculate deadline for timed waits 2014-01-31 22:17:43 +01:00
threads.h threads: add function to calculate deadline for timed waits 2014-01-31 22:17:43 +01:00
timer-darwin.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
timer-linux.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
timer-win2.c timer: use gettimeofday() on Windows 2013-05-26 16:44:20 +02:00
timer.c Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
timer.h Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
w32_keyboard.c w32: use the w32_common keymap in terminal-win too 2014-01-19 14:42:15 +01:00
w32_keyboard.h w32: use the w32_common keymap in terminal-win too 2014-01-19 14:42:15 +01:00
win32-console-wrapper.c win32-console-wrapper: use child process exit code 2014-01-06 13:31:15 +01:00