summaryrefslogtreecommitdiffstats
path: root/osdep/threads-posix.h
Commit message (Collapse)AuthorAgeFilesLines
* osdep/threads: fix warning: initializer element is not constantnanahi2024-03-191-1/+1
|
* osdep/mac: make mac naming of files, folders and function consistentder richter2024-02-281-2/+2
| | | | | rename all macOS namings (osx, macosx, macOS, macos, apple) to mac, to make naming consistent.
* osdep/threads-posix: fix headers for OpenBSD buildJose Maldonado aka Yukiteru2024-02-151-0/+5
| | | | | In OpenBSD the compilation fail because osdep/threads-posix.h need include pthread_np.h
* osdep/threads-posix: use CLOCK_MONOTONIC if supportedKacper Michajłow2023-11-081-10/+56
|
* threads: unbreak mpv on builds without assertsKacper Michajłow2023-11-061-0/+1
| | | | | | Also remove duplicated macro. Fixes: #12818 #12820
* threads: move pthread debug to threads-posix.hKacper Michajłow2023-11-051-0/+61
| | | | And remove redundant define while at it.
* mp_thread: prefer tracking threads with idKacper Michajłow2023-11-051-3/+7
| | | | | | | | | | | | | | 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.
* threads: add new mp_thread abstractionKacper Michajłow2023-11-051-0/+135
This will allow to avoid hacky pthreads symbols/header override. Inspired by pl_thread from libplacebo.