diff options
author | wm4 <wm4@nowhere> | 2018-05-06 16:17:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:34 +0200 |
commit | a1ed1f8be09c927994b58399e77e99336ec7f436 (patch) | |
tree | 8989650d9c899dcd140223e10f15a756ad9f0c7f /input/ipc-win.c | |
parent | a0308d31697c5dd601ee036acbc937c361746cc3 (diff) | |
download | mpv-a1ed1f8be09c927994b58399e77e99336ec7f436.tar.bz2 mpv-a1ed1f8be09c927994b58399e77e99336ec7f436.tar.xz |
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.
Diffstat (limited to 'input/ipc-win.c')
0 files changed, 0 insertions, 0 deletions