1
0
forked from mirrors/0ad
Files
0ad/source/graphics
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
..
2021-04-09 15:45:31 +00:00
2021-05-06 07:42:49 +00:00
2021-04-09 15:45:31 +00:00
2021-04-24 09:39:33 +00:00
2021-02-21 10:04:39 +00:00
2021-05-02 15:45:40 +00:00
2021-04-16 16:01:30 +00:00
2021-04-16 16:01:30 +00:00
2021-04-28 16:38:45 +00:00
2021-04-07 08:35:02 +00:00
2021-04-07 08:35:02 +00:00