CogTrevista CpuProcessingThreadCountMax Property Cognex VisionPro 9.22
Gets or sets the maximum number of threads to use when processing with a CPU

Namespace: Cognex.VisionPro.Trevista
Assembly: Cognex.VisionPro.Trevista (in Cognex.VisionPro.Trevista.dll) Version: 87.0.0.0
Syntax

public int CpuProcessingThreadCountMax { get; set; }

Property Value

Type: Int32
The Default value is 4 If set to zero, the number of threads used will be one less than the number of concurrent threads supported by this implementation.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Exceptions

ExceptionCondition
ObjectDisposedException If the object has been disposed.
ArgumentOutOfRangeException The supplied value is less than zero.
Remarks

A value of 0 means one less than the number of threads that can be executed simultaneously. There is no restriction on max value, but keep in mind that more threads does not always mean faster processing. At some point it will even slow down the processing speed.
See Also