|
CeresEngine 0.2.0
A game development framework
|
A partitioner that splits the ranges until it identifies we are not moving to new threads. More...
#include <CeresEngine/Foundation/Algorithm/Partitioner.hpp>
Public Member Functions | |
| ThreadPartitioner (const std::size_t minimumGrainSize, const std::size_t occupancy=hardware_concurrency()) | |
| template<typename I , typename S > | |
| auto | operator() (I first, S last) |
Private Attributes | |
| std::size_t | mMinimumGrainSize |
| std::size_t | mThreadCount {hardware_concurrency()} |
A partitioner that splits the ranges until it identifies we are not moving to new threads.
This partitioner splits the ranges until it identifies we are not moving to new threads. Apart from that, it behaves as a HalvePartitioner, splitting the range up to a minimum grain size.
|
inlineexplicit |
|
private |
|
private |