Skip to content

Commit

Permalink
Merge pull request #25 from Vindaar/exportThreadPoolSize
Browse files Browse the repository at this point in the history
Export `ThreadPoolSize` and `FixedChanSize`
  • Loading branch information
Araq authored Sep 16, 2023
2 parents c274ceb + 5f90e18 commit 32fd877
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion malebolgia.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.3.0"
version = "1.3.1"
author = "Araq"
description = "Malebolgia creates new spawns. Experiments with thread pools and related APIs."
license = "MIT"
Expand Down
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 32fd877

Please sign in to comment.