From a5628230c1f3fc876ac67f50bbb7dd24a52c6145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 21 Sep 2017 13:40:00 +0200 Subject: [PATCH] Fix setupWorkerThreads to actually use the provided thread count. See #35. --- source/vibe/core/core.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 6ff8abf..7ec570a 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -590,7 +590,7 @@ public void setupWorkerThreads(uint num = logicalProcessorCount()) synchronized (st_threadsMutex) { if (!st_workerPool) - st_workerPool = new shared TaskPool; + st_workerPool = new shared TaskPool(num); } }