diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 08:55:30 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 08:55:30 +0100 |
commit | 6a3288a60e78c9b17f2640fff20ab94969914974 (patch) | |
tree | 5946b02ce048d67c70f99b8636c6afcd5c082cd4 /lib/pure/concurrency | |
parent | 70ea45cdbaa9d26a7196ab2718f60c9ca77e2d12 (diff) | |
download | Nim-6a3288a60e78c9b17f2640fff20ab94969914974.tar.gz |
more replacements for the deprecated '<'
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 0f23b7e85..01dcad9f9 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -149,7 +149,7 @@ proc selectWorker(w: ptr Worker; fn: WorkerProc; data: pointer): bool = proc cleanFlowVars(w: ptr Worker) = let q = addr(w.q) acquire(q.lock) - for i in 0 .. <q.len: + for i in 0 ..< q.len: GC_unref(cast[RootRef](q.data[i])) #echo "GC_unref" q.len = 0 @@ -543,7 +543,7 @@ proc sync*() = var toRelease = 0 while true: var allReady = true - for i in 0 .. <currentPoolSize: + for i in 0 ..< currentPoolSize: if not allReady: break allReady = allReady and workersData[i].ready if allReady: break |