mirror of https://github.com/mpv-player/mpv
55ed50ba90
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. |
||
---|---|---|
.. | ||
bstr.c | ||
bstr.h | ||
charset_conv.c | ||
charset_conv.h | ||
ctype.h | ||
dispatch.c | ||
dispatch.h | ||
jni.c | ||
jni.h | ||
json.c | ||
json.h | ||
language.c | ||
language.h | ||
linked_list.h | ||
natural_sort.c | ||
natural_sort.h | ||
node.c | ||
node.h | ||
random.c | ||
random.h | ||
rendezvous.c | ||
rendezvous.h | ||
thread_pool.c | ||
thread_pool.h | ||
thread_tools.c | ||
thread_tools.h | ||
uuid.c | ||
uuid.h |