summaryrefslogtreecommitdiffstats
path: root/misc/thread_pool.h
Commit message (Collapse)AuthorAgeFilesLines
* thread_pool: make it slightly less dumbwm42018-05-241-2/+4
| | | | | | | | | | | | 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.
* misc: add a thread poolwm42017-04-011-0/+10
To be used by the following commits.