1
0
forked from 0ad/0ad
0ad/source/ps/tests
wraitii 1b35d36daa Implement a global task manager using a pool of worker threads
Tasks are simple callables (e.g. lambdas), and can be pushed with 2
priority levels. Pushing a task returns a future.
Futures can be waited on, can return results, and can be cancelled
deterministically. Futures can also not be waited on.

This gives 'hardware concurrency - 1' threads to maximize CPU usage in a
work-stealing workflow.

Reviewed by: vladislavbelov
Refs #5874

Differential Revision: https://code.wildfiregames.com/D3848
This was SVN commit r25656.
2021-06-03 14:48:38 +00:00
..
stub_impl_hack.h Fix OSX not starting matches following 8fbc095a88. 2018-05-08 10:03:46 +00:00
test_CColor.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
test_CLogger.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
test_ConfigDB.h De-singletonify CConfigDB, make hooks RAII. 2021-04-27 07:45:40 +00:00
test_CStr.h Workaround differences between libc and libstd string stream parsing of float/doubles. 2019-09-15 12:02:26 +00:00
test_fmt.h Use a more common locale, en_US.UTF-8 is not always present. 2020-11-30 13:59:05 +00:00
test_Future.h Implement a global task manager using a pool of worker threads 2021-06-03 14:48:38 +00:00
test_Hashing.h Fixes PCH after 7bfcd9f78b. 2021-05-20 11:47:56 +00:00
test_Hotkeys.h De-singletonify CConfigDB, make hooks RAII. 2021-04-27 07:45:40 +00:00
test_Mod.h Allow mods to say they should be ignored in replay/MP compatibility checks 2021-06-02 06:50:16 +00:00
test_ModIo.h Throw errors instead of warnings on wrong implicit conversions. 2021-05-03 15:44:06 +00:00
test_TaskManager.h Implement a global task manager using a pool of worker threads 2021-06-03 14:48:38 +00:00
test_test.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00