diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-06-10 21:07:00 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-06-10 21:07:00 +0200 |
commit | a9e791823e749bfe9ff1a9ebfab66e1d0112572c (patch) | |
tree | 54974f11a4d31d978892441ccf6945b21a543735 /lib/pure/concurrency | |
parent | 291e3b90f42a6ea17aaa031c4b5fda1a90df6303 (diff) | |
parent | 891d953a4cd0be4693204e3d62ae7a22ec89aba9 (diff) | |
download | Nim-a9e791823e749bfe9ff1a9ebfab66e1d0112572c.tar.gz |
Merge pull request #2891 from sstirlin/devel
fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r-- | lib/pure/concurrency/threadpool.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 749a2fa2d..247aa377c 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -290,7 +290,8 @@ proc slave(w: ptr Worker) {.thread.} = readyWorker = w signal(gSomeReady) await(w.taskArrived) - assert(not w.ready) + # XXX Somebody needs to look into this (why does this assertion fail in Visual Studio?) + when not defined(vcc): assert(not w.ready) w.f(w, w.data) if w.q.len != 0: w.cleanFlowVars if w.shutdown: |