threadpool.nim: allow control over MaxThreadPoolSize and MaxDistinguishedThread; refs #10584
This commit is contained in:
parent
0f2377ebef
commit
8215c57666
1 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue