Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.56 KB

affinity-partitioner-class.md

File metadata and controls

56 lines (37 loc) · 1.56 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: affinity_partitioner Class
affinity_partitioner Class
11/04/2016
affinity_partitioner
PPL/concurrency::affinity_partitioner
PPL/concurrency::affinity_partitioner::affinity_partitioner
affinity_partitioner class
31bf7bb1-bd01-491c-9760-d9d60edfccad

affinity_partitioner Class

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.

Syntax

class affinity_partitioner;

Members

Public Constructors

Name Description
affinity_partitioner Constructs an affinity_partitioner object.
~affinity_partitioner Destructor Destroys an affinity_partitioner object.

Inheritance Hierarchy

affinity_partitioner

Requirements

Header: ppl.h

Namespace: concurrency

~affinity_partitioner

Destroys an affinity_partitioner object.

~affinity_partitioner();

affinity_partitioner

Constructs an affinity_partitioner object.

affinity_partitioner();

See also

concurrency Namespace