Skip to content

Commit

Permalink
fixes #1683 NNG_MAX_EXPIRE_THREADS tunable documentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phsilva committed Aug 23, 2023
1 parent c5e9d8a commit 963f9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 963f9c8

Please sign in to comment.