IResourceManager::CreateNodeTopology Method

Present only in debug builds of the runtime, this method is a test hook designed to facilitate testing of the Resource Manager on varying hardware topologies, without requiring actual hardware matching the configuration. With retail builds of the runtime, this method will return without performing any action.

virtual void CreateNodeTopology(
   unsigned int nodeCount,
   _In_reads_(nodeCount) unsigned int * pCoreCount,
   _In_reads_opt_(nodeCount) unsigned int ** pNodeDistance,
   _In_reads_(nodeCount) unsigned int * pProcessorGroups
) =0;

Parameters

  • nodeCount
    The number of processor nodes being simulated.

  • pCoreCount
    An array that specifies the number of cores on each node.

  • pNodeDistance
    A matrix specifying the node distance between any two nodes. This parameter can have the value NULL.

  • pProcessorGroups
    An array that specifies the processor group each node belongs to.

Remarks

invalid_argument is thrown if the parameter nodeCount has the value 0 was passed in, or if the parameter pCoreCount has the value NULL.

invalid_operation is thrown if this method is called while other schedulers exist in the process.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

IResourceManager Structure