Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

affinity_partitioner Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The affinity_partitioner class is similar to the static_partitioner class, but it improves cache affinity by its choice of mapping subranges to worker threads. It can improve performance significantly when a loop is re-executed over the same data set, and the data fits in cache. Note that the same affinity_partitioner object must be used with subsequent iterations of a parallel loop that is executed over a particular data set, to benefit from data locality.

class affinity_partitioner;

Public Constructors

NameDescription
affinity_partitioner::affinity_partitioner ConstructorConstructs an affinity_partitioner object.
affinity_partitioner::~affinity_partitioner DestructorDestroys an affinity_partitioner object.

affinity_partitioner

Header: ppl.h

Namespace: concurrency

Destroys an affinity_partitioner object.

~affinity_partitioner();

Constructs an affinity_partitioner object.

affinity_partitioner();

concurrency Namespace

Show:
© 2017 Microsoft