1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00
mpv/misc
wm4 a1ed1f8be0 thread_pool: make it slightly less dumb
The existing thread pool code is the most primitive thread pool
possible. That's fine, but one annoying thing was that it used a static
number of threads. Make it dynamic, so we don't need to "waste" idle
threads.

This tries to add threads as needed. If threads are idle for some time,
destroy them again until a minimum number of threads is reached.

Also change the license to ISC.
2018-05-24 19:56:34 +02:00
..
bstr.c vo_opengl: support loading custom user textures 2017-07-27 23:51:05 +02:00
bstr.h bstr: short-circuit bstr_equals on pointer equality 2017-08-03 21:48:25 +02:00
charset_conv.c osx: consistent normalisation when searching for external files 2017-02-02 16:21:04 +01:00
charset_conv.h osx: consistent normalisation when searching for external files 2017-02-02 16:21:04 +01:00
ctype.h Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
dispatch.c dispatch: add an assert() 2018-05-24 19:56:33 +02:00
dispatch.h player: remove in_dispatch field 2018-04-18 01:17:42 +03:00
json.c m_option: pretty print mpv_node for OSD 2017-10-30 15:32:24 +01:00
json.h m_option: pretty print mpv_node for OSD 2017-10-30 15:32:24 +01:00
node.c command: use mpv_node helpers instead of duplicated code 2018-03-26 19:47:08 +02:00
node.h command: change demuxer-cache-state property to return multiple ranges 2017-10-26 22:31:04 +02:00
rendezvous.c Add Plan 9-style barriers 2014-07-26 20:29:48 +02:00
rendezvous.h Add Plan 9-style barriers 2014-07-26 20:29:48 +02:00
ring.c misc/ring: fix comment typo 2017-07-09 13:46:13 -07:00
ring.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
thread_pool.c thread_pool: make it slightly less dumb 2018-05-24 19:56:34 +02:00
thread_pool.h thread_pool: make it slightly less dumb 2018-05-24 19:56:34 +02:00
thread_tools.c misc: add a synchronization helper 2018-05-24 19:56:34 +02:00
thread_tools.h misc: add a synchronization helper 2018-05-24 19:56:34 +02:00