67a260d63f
This PR implements a worked thread pool. It uses a fixed amount of threads in a pool and allows scheduling tasks that can be run on threads (and then waited for). It satisfies the following use cases: * HTML5 thread count is fixed (and similar restrictions are known in consoles) so we need to reuse threads. * Thread spawning is slow in general, so reusing threads is faster anyway. * This implementation supports recursive waiting for tasks, making it less prone to deadlocks if threads from the pool also run tasks. After this is approved and merged, subsequent PRs will be needed to replace the ThreadWorkPool usage by this class. |
||
---|---|---|
.. | ||
core | ||
data | ||
scene | ||
servers | ||
SCsub | ||
test_macros.cpp | ||
test_macros.h | ||
test_main.cpp | ||
test_main.h | ||
test_tools.h | ||
test_utils.cpp | ||
test_utils.h | ||
test_validate_testing.h |