Skip to content

Commit

Permalink
export ThreadPoolSize and FixedChanSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Sep 15, 2023
1 parent c274ceb commit 6df14dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/malebolgia.nim
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ proc waitForCompletions(m: var Master) =
# thread pool independent of the 'master':

const
FixedChanSize {.intdefine.} = 16 ## must be a power of two!
FixedChanSize* {.intdefine.} = 16 ## must be a power of two!
FixedChanMask = FixedChanSize - 1

ThreadPoolSize {.intdefine.} = 8 # 24
ThreadPoolSize* {.intdefine.} = 8 # 24

type
PoolTask = object ## a task for the thread pool
Expand Down

0 comments on commit 6df14dc

Please sign in to comment.