disabled threadpool assertion only for vcc

This commit is contained in:
Spencer Stirling
2015-06-10 07:23:07 -06:00
parent d152ccc1e2
commit 891d953a4c

View File

@@ -290,7 +290,8 @@ proc slave(w: ptr Worker) {.thread.} =
readyWorker = w
signal(gSomeReady)
await(w.taskArrived)
#assert(not w.ready) # doesn't work with Visual Studio
# 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: