rodbus (C++ API) 1.3.1
|
Runtime configuration. More...
#include <rodbus.hpp>
Public Member Functions | |
RuntimeConfig () | |
Initialize the configuration to default values. More... | |
Public Attributes | |
uint16_t | num_core_threads |
Number of runtime threads to spawn. For a guess of the number of CPU cores, use 0. More... | |
Friends | |
class | CppRuntimeConfigFriend |
Runtime configuration.
rodbus::RuntimeConfig::RuntimeConfig | ( | ) |
Initialize the configuration to default values.
uint16_t rodbus::RuntimeConfig::num_core_threads |
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.