aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2023-08-23 16:23:18 -0300
committerGarrett D'Amore <garrett@damore.org>2023-08-27 22:58:40 -0700
commit5ac5be5cacacdb8d6cac2fa362fce6d78e4dc389 (patch)
tree3d44c763f0bd72117579cdd87bbf305ffd191e8b /include
parent0172c0512a1d8bb3e165b76d9dd65925965bd3f8 (diff)
downloadnng-5ac5be5cacacdb8d6cac2fa362fce6d78e4dc389.tar.gz
nng-5ac5be5cacacdb8d6cac2fa362fce6d78e4dc389.tar.bz2
nng-5ac5be5cacacdb8d6cac2fa362fce6d78e4dc389.zip
fixes #1619 expose expire threads tunables
This change makes expire threads tunable follows the same strategy as taskq threads tunables. Add NNG_NUM_EXPIRE_THREADS to override the default behavior (`n_cpu` expire threads). The NNG_MAX_EXPIRE_THREADS limit is always applied if > 0, even if you specify the desired number of threads using NNG_NUM_EXPIRE_THREADS. NNG_EXPIRE_THREADS is not used anymore. This was only referenced in the code but never defined on CMake. The logic to cap expire threads between 1 and 256 was removed. If users set no limits, whatever value they choose will be used instead of being silently overridden by us.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions