int PCMSMatrixSetThreadCount (long threads)
long threads – The number of threads the trip matrix should use for processing.
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 PC*MILER|RouteMatrix is required.)
Negative one (-1) indicates that the product is not licensed for RouteMatrix.
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