From 8215c576664e0bd689c16739f72d5b79cf302ec8 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 20 Mar 2020 15:06:53 +0100 Subject: [PATCH] threadpool.nim: allow control over MaxThreadPoolSize and MaxDistinguishedThread; refs #10584 --- lib/pure/concurrency/threadpool.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 1f7df7c00..ec950aa19 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -317,9 +317,9 @@ proc nimArgsPassingDone(p: pointer) {.compilerProc.} = signal(w.taskStarted) const - MaxThreadPoolSize* = 256 ## Maximum size of the thread pool. 256 threads - ## should be good enough for anybody ;-) - MaxDistinguishedThread* = 32 ## Maximum number of "distinguished" threads. + MaxThreadPoolSize* {.intdefine.} = 256 ## Maximum size of the thread pool. 256 threads + ## should be good enough for anybody ;-) + MaxDistinguishedThread* {.intdefine.} = 32 ## Maximum number of "distinguished" threads. type ThreadId* = range[0..MaxDistinguishedThread-1]