Set the thread count mode, thread count and multi-threading enable state when running vision tools.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 85.1.0.0
public static void SetModeCountAndEnable(
CogVisionToolMultiThreadingThreadCountModeConstants threadCountMode,
int threadCount,
bool enable
)
public static void SetModeCountAndEnable(
CogVisionToolMultiThreadingThreadCountModeConstants threadCountMode,
int threadCount,
bool enable
)
Public Shared Sub SetModeCountAndEnable (
threadCountMode As CogVisionToolMultiThreadingThreadCountModeConstants,
threadCount As Integer,
enable As Boolean
)
Public Shared Sub SetModeCountAndEnable (
threadCountMode As CogVisionToolMultiThreadingThreadCountModeConstants,
threadCount As Integer,
enable As Boolean
)
public:
static void SetModeCountAndEnable(
CogVisionToolMultiThreadingThreadCountModeConstants threadCountMode,
int threadCount,
bool enable
)
public:
static void SetModeCountAndEnable(
CogVisionToolMultiThreadingThreadCountModeConstants threadCountMode,
int threadCount,
bool enable
)
If multi-threading is enabled and the thread count mode is HardwareDefined, then the thread count will be set to the number of physical processors or cores installed. If any exception is thrown, the last good values of thread count mode, thread count, and multi-threading enable state will be restored.