From 891d953a4cd0be4693204e3d62ae7a22ec89aba9 Mon Sep 17 00:00:00 2001 From: Spencer Stirling Date: Wed, 10 Jun 2015 07:23:07 -0600 Subject: [PATCH] disabled threadpool assertion only for vcc --- lib/pure/concurrency/threadpool.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 43a9dea110..247aa377c1 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) # 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: