Merge pull request #2891 from sstirlin/devel
fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
This commit is contained in:
commit
a9e791823e
2 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue