summaryrefslogtreecommitdiffstats
path: root/osdep/threads-win32.h
Commit message (Collapse)AuthorAgeFilesLines
* win32: increase hires timer resolutionnanahi2024-03-191-1/+1
| | | | | | | | | | | timeBeginPeriod() only allows setting minimum timer resolution to 1 ms. However, modern x86 platforms support a minimum timer resolution of 0.5 ms. Use NtSetTimerResolution() instead for the increased resolution, which can be set with MPV_HRT_RES. Additionally, change the units of mp_start_hires_timers(), mp_end_hires_timer(), MPV_HRT_RES, and MPV_HRT_MAX to nanoseconds, in accordance with other functions used in timer.h.
* osdep/threads: fix warning: initializer element is not constantnanahi2024-03-191-1/+1
|
* threads-win32: add comment about local decl of a functionKacper Michajłow2023-11-081-0/+1
|
* threads-win32: support UWP in mp_thread_set_nameKacper Michajłow2023-11-081-3/+7
|
* threads: unbreak mpv on builds without assertsKacper Michajłow2023-11-061-3/+0
| | | | | | Also remove duplicated macro. Fixes: #12818 #12820
* mp_thread: add win32 implementationKacper Michajłow2023-11-051-0/+222