make tests green again
This commit is contained in:
parent
8b54db06cb
commit
aa526da706
3 changed files with 6 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue