diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 23:09:46 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 23:09:46 +0100 |
commit | aa526da70645f28a284defa9a1487371ae7bd339 (patch) | |
tree | 75db8ff4a5c7b0b4b5d06eec3982479a272dc5a6 /lib/pure/concurrency | |
parent | 8b54db06cb519e6e29b73120c71b3fb8c06a608b (diff) | |
download | Nim-aa526da70645f28a284defa9a1487371ae7bd339.tar.gz |
make tests green again
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r-- | lib/pure/concurrency/threadpool.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 01dcad9f9..a5eaec86e 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -401,7 +401,7 @@ proc setup() = gCpus = p currentPoolSize = min(p, MaxThreadPoolSize) readyWorker = addr(workersData[0]) - for i in 0.. <currentPoolSize: activateWorkerThread(i) + for i in 0..<currentPoolSize: activateWorkerThread(i) proc preferSpawn*(): bool = ## Use this proc to determine quickly if a 'spawn' or a direct call is @@ -446,7 +446,7 @@ proc nimSpawn3(fn: WorkerProc; data: pointer) {.compilerProc.} = # implementation of 'spawn' that is used by the code generator. while true: if selectWorker(readyWorker, fn, data): return - for i in 0.. <currentPoolSize: + for i in 0..<currentPoolSize: if selectWorker(addr(workersData[i]), fn, data): return # determine what to do, but keep in mind this is expensive too: |