1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-29 23:07:56 +00:00
mpv/input
Kacper Michajłow 55ed50ba90 mp_thread: prefer tracking threads with id
This change essentially removes mp_thread_self() and instead add
mp_thread_id to track threads and have ability to query current thread
id during runtime.

This will be useful for upcoming win32 implementation, where accessing
thread handle is different than on pthreads. Greatly reduces complexity.
Otherweis locked map of tid <-> handle is required which is completely
unnecessary for all mpv use-cases.

Note that this is the mp_thread_id, not to confuse with system tid. For
example on threads-posix implementation it is simply pthread_t.
2023-11-05 17:36:17 +00:00
..
cmd.c command: don't hardcode commands list to be repeatable 2021-08-17 22:45:39 +03:00
cmd.h options: transition commands from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
event.c input: ignore empty lines on drag-drop mime data 2019-09-21 15:39:47 +02:00
event.h input/event.h: add include guard 2016-03-15 22:44:15 +01:00
input.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
input.h command: mouse-pos property: add field "hover" 2020-11-16 20:29:58 +02:00
ipc-dummy.c scripting: add a way to run sub processes as "scripts" 2020-02-19 22:18:15 +01:00
ipc-unix.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
ipc-win.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
ipc.c json: unify json_parse depth to MAX_JSON_DEPTH=50 2023-07-08 11:36:15 +02:00
keycodes.c input: add missing keypad key defines 2023-08-25 15:55:31 +00:00
keycodes.h input: add missing keypad key defines 2023-08-25 15:55:31 +00:00
meson.build build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
sdl_gamepad.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00