disabled threadpool assertion only for vcc
This commit is contained in:
parent
d152ccc1e2
commit
891d953a4c
1 changed files with 2 additions and 1 deletions
|
|
@ -290,7 +290,8 @@ proc slave(w: ptr Worker) {.thread.} =
|
||||||
readyWorker = w
|
readyWorker = w
|
||||||
signal(gSomeReady)
|
signal(gSomeReady)
|
||||||
await(w.taskArrived)
|
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)
|
w.f(w, w.data)
|
||||||
if w.q.len != 0: w.cleanFlowVars
|
if w.q.len != 0: w.cleanFlowVars
|
||||||
if w.shutdown:
|
if w.shutdown:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue