1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 00:42:57 +00:00
mpv/mpvcore/input
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.c input: avoid using wakeup pipe if it's not needed 2013-12-16 20:03:00 +01:00
input.h Add prelimimary (basic, possibly broken) dvdnav support 2013-12-12 01:46:45 +01:00
joystick.c
joystick.h
keycodes.h osx: use MP_KEY_* instead of MK_* for media keys 2013-09-01 20:57:40 +02:00
lirc.c
lirc.h