Compartilhar via


IExecutionResource::GetNodeId Method

Returns a unique identifier for the processor node that this execution resource belongs to.

virtual unsigned int GetNodeId() const =0;

Return Value

A unique identifier for a processor node.

Remarks

The Concurrency Runtime represents hardware threads on the system in groups of processor nodes. Nodes are usually derived from the hardware topology of the system. For example, all processors on a specific socket or a specific NUMA node may belong to the same processor node. The Resource Manager assigns unique identifiers to these nodes starting with 0 up to and including nodeCount - 1, where nodeCount represents the total number of processor nodes on the system.

The count of nodes can be obtained from the function GetProcessorNodeCount.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

IExecutionResource Structure