From 963f9c80c8348f96bea161a5a75f4fab11b2a661 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Wed, 23 Aug 2023 14:48:11 -0300 Subject: [PATCH] fixes #1683 NNG_MAX_EXPIRE_THREADS tunable documentation NNG_MAX_EXPIRE_THREADS docs say that 0 means unlimited, but there is a code check that imposes a limit between [1, 256]. This commit fixes the doc. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eaf77c9a9..e89732443 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ endif () # reduces contention on the common locks used for aio expiration. # The default is to allocate up to max(8, ncpu). The upper limit can be # overridden here. -set(NNG_MAX_EXPIRE_THREADS 8 CACHE STRING "Upper bound on expire threads, 0 for no limit") +set(NNG_MAX_EXPIRE_THREADS 8 CACHE STRING "Upper bound on expire threads, between 1...256") mark_as_advanced(NNG_MAX_EXPIRE_THREADS) if (NNG_MAX_EXPIRE_THREADS) add_definitions(-DNNG_MAX_EXPIRE_THREADS=${NNG_MAX_EXPIRE_THREADS})