[vlc-commits] threads: add vlc_cond_timedwait_daytime()
Rémi Denis-Courmont
git at videolan.org
Tue May 24 21:20:54 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 23 22:03:45 2016 +0300| [0ef03f60c0dd4ffc543a2bdec8f446ee984be9d9] | committer: Rémi Denis-Courmont
threads: add vlc_cond_timedwait_daytime()
This separates waiting on UTC deadline from waiting on monotonic clock.
That way, storing the reference clock in vlc_cond_t is no longer
necessary. There was only one single condition variable using the UTC
clock (in VLM), so vlc_cond_t.clock was rather wasteful.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ef03f60c0dd4ffc543a2bdec8f446ee984be9d9
---
include/vlc_threads.h | 59 ++++++++++++++++++-----------------
src/android/thread.c | 71 +++++++++++++++++++++---------------------
src/darwin/thread.c | 82 ++++++++++++++++++++++---------------------------
src/input/vlm.c | 2 +-
src/libvlccore.sym | 1 -
src/os2/thread.c | 69 +++++++++++++++++------------------------
src/posix/thread.c | 10 ++++++
src/win32/thread.c | 58 +++++++++++++---------------------
8 files changed, 164 insertions(+), 188 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=0ef03f60c0dd4ffc543a2bdec8f446ee984be9d9
More information about the vlc-commits
mailing list