From 2905b496fadc9e1b3f93a14338d75f1aa5a93509 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 20 May 2018 23:37:29 +0100 Subject: [PATCH] Experiment with threads. --- src/forum.nim | 2 +- src/forum.nim.cfg | 5 ++++- src/frontend/postlist.nim | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/forum.nim b/src/forum.nim index 6e60108..c63a30a 100644 --- a/src/forum.nim +++ b/src/forum.nim @@ -5,7 +5,7 @@ # Look at license.txt for more info. # All rights reserved. # - +import system except Thread import os, strutils, times, md5, strtabs, math, db_sqlite, scgi, jester, asyncdispatch, asyncnet, sequtils, diff --git a/src/forum.nim.cfg b/src/forum.nim.cfg index 3af1ac0..d169997 100644 --- a/src/forum.nim.cfg +++ b/src/forum.nim.cfg @@ -3,4 +3,7 @@ path="$lib/packages/docutils" path="$nim" --d:ssl \ No newline at end of file +-d:ssl + +# --threads:on +# --threadAnalysis:off \ No newline at end of file diff --git a/src/frontend/postlist.nim b/src/frontend/postlist.nim index f568df0..84f3b7b 100644 --- a/src/frontend/postlist.nim +++ b/src/frontend/postlist.nim @@ -1,4 +1,5 @@ +import system except Thread import options, json, times, httpcore, strformat, sugar, math, strutils import sequtils