fixed threadpool and atomics to work with Visual Studio 32 and 64 bit

This commit is contained in:
Spencer Stirling 2015-06-09 11:59:26 -06:00
commit d152ccc1e2
2 changed files with 3 additions and 3 deletions

View file

@ -290,7 +290,7 @@ proc slave(w: ptr Worker) {.thread.} =
readyWorker = w
signal(gSomeReady)
await(w.taskArrived)
assert(not w.ready)
#assert(not w.ready) # doesn't work with Visual Studio
w.f(w, w.data)
if w.q.len != 0: w.cleanFlowVars
if w.shutdown: