Syntax
int PCMSMatrixSetThreadCount (long threads)
Parameters
long threads – The number of threads the trip matrix should use for processing.
Description
Allows the calling application to specify how many threads to use for parallel processing. When not specified, RouteMatrix will use the available cores and threads on the computer. (A license for RouteMatrix is required.)
Return Values
Negative one (-1) indicates that the product is not licensed for RouteMatrix.
Sample Code
Trip matTrip = PCMSNewTrip(server); // Set up the Matrix Routing options PCMSSetCalcType(matTrip, CALC_PRACTICAL); PCMSMatrixSetOptions(matTrip); // Set the number of threads to be used internally PCMSMatrixSetThreadCount(2);
Supported Since: PC*MILER Connect 26
Category: Matrix Functions