rodbus (.NET API) 1.3.1
Loading...
Searching...
No Matches
rodbus.RuntimeConfig Class Reference

Runtime configuration More...

Public Member Functions

RuntimeConfig WithNumCoreThreads (ushort value)
 Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0. More...
 
 RuntimeConfig ()
 Initialize the configuration to default values More...
 

Public Attributes

ushort NumCoreThreads
 Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0. More...
 

Detailed Description

Runtime configuration

Constructor & Destructor Documentation

◆ RuntimeConfig()

rodbus.RuntimeConfig.RuntimeConfig ( )
inline

Initialize the configuration to default values

Default values:

Member Function Documentation

◆ WithNumCoreThreads()

RuntimeConfig rodbus.RuntimeConfig.WithNumCoreThreads ( ushort  value)
inline

Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0.

Even if tons of connections are expected, it is preferred to use a value around the number of CPU cores for better performances. The library uses an efficient thread pool polling mechanism.

Member Data Documentation

◆ NumCoreThreads

ushort rodbus.RuntimeConfig.NumCoreThreads

Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0.

Even if tons of connections are expected, it is preferred to use a value around the number of CPU cores for better performances. The library uses an efficient thread pool polling mechanism.


The documentation for this class was generated from the following file: