1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00
mpv/mpvcore
wm4 e8f21b1f0a input: avoid using wakeup pipe if it's not needed
If input is not waiting for select(), writing to the wakeup pipe is
wasteful, and, if there are many wakeups, might even block the wakeup
threads if the pipe gets full.

However, if it's waiting for select(), the wakup pipe must be used to
unblock the waiting thread. Actually there's a small race condition: we
might determine that the main thread is in select(), and write to the
wakeup pipe (whether we do this while unlocked or locked doesn't really
matter). Then, the main thread might leave select() before reading from
the wakup pipe. This should be harmless, because at worst more wakeups
than needed happen, but never fewer.
2013-12-16 20:03:00 +01:00
..
input input: avoid using wakeup pipe if it's not needed 2013-12-16 20:03:00 +01:00
player player: don't temporarily disable terminal handling when reloading files 2013-12-15 18:06:21 +01:00
asxparser.c
asxparser.h
av_common.c vd_lavc: factor out libavcodec thread setup 2013-12-04 23:12:51 +01:00
av_common.h vd_lavc: factor out libavcodec thread setup 2013-12-04 23:12:51 +01:00
av_log.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
av_log.h mplayer: print ffmpeg library versions along with mpv version info 2013-10-14 20:14:17 +02:00
av_opts.c
av_opts.h
bstr.c
bstr.h
charset_conv.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
charset_conv.h
codecs.c
codecs.h
cpudetect.c
cpudetect.h
encode_lavc.c Take care of some libavutil deprecations, drop support for FFmpeg 1.0 2013-11-29 17:39:57 +01:00
encode_lavc.h Take care of some libavutil deprecations, drop support for FFmpeg 1.0 2013-11-29 17:39:57 +01:00
encode.h Split mplayer.c 2013-10-30 01:53:53 +01:00
m_config.c options: remove legacy hacks for sub-option handling 2013-12-04 23:13:46 +01:00
m_config.h options: remove legacy hacks for sub-option handling 2013-12-04 23:13:46 +01:00
m_option.c options: allow hwaccel formats in -vf format/noformat 2013-12-07 19:39:45 +01:00
m_option.h options: remove legacy hacks for sub-option handling 2013-12-04 23:13:46 +01:00
m_property.c
m_property.h
mp_common.c
mp_common.h Reduce stheader.h includes, move stream types to mp_common.h 2013-11-23 22:08:42 +01:00
mp_memory_barrier.h
mp_msg.c mp_msg: remove gettext() support 2013-10-18 22:38:10 +02:00
mp_msg.h mp_msg: define a bunch of convenience macros 2013-12-16 20:02:59 +01:00
mp_ring.c mp_ring: fix comment typo 2013-11-22 19:12:43 +01:00
mp_ring.h mp_ring: remove unused function 2013-11-15 21:08:48 +01:00
mp_talloc.h mp_talloc: simplify a bit 2013-10-19 21:43:08 +02:00
mpv_global.h
options.c matroska: add --ordered-chapters-files option 2013-12-14 21:52:37 +01:00
options.h matroska: add --ordered-chapters-files option 2013-12-14 21:52:37 +01:00
parser-cfg.c parser-cfg: allow putting options with leading "--" 2013-10-14 23:41:26 +02:00
parser-cfg.h
parser-mpcmd.c options: don't let watch_later etc. overwite command line options 2013-10-25 22:52:54 +02:00
parser-mpcmd.h
path.c Allow some options taking filenames to refer to mpv config dir 2013-12-14 19:54:49 +01:00
path.h Allow some options taking filenames to refer to mpv config dir 2013-12-14 19:54:49 +01:00
playlist_parser.c playlist: rewrite PLS parser 2013-11-04 23:55:41 +01:00
playlist_parser.h
playlist.c
playlist.h
resolve_quvi9.c
resolve_quvi.c
resolve.h
version.c