diff options
author | Araq <rumpf_a@web.de> | 2014-08-08 09:54:43 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-08 09:54:43 +0200 |
commit | abf511245a4c69af5745ba99e6e69527a347dbf9 (patch) | |
tree | ef241b05b9f4cb8e35e6ef4aace18e52907d9e8c /lib/pure/concurrency | |
parent | c5b94864558f7fc009de1d55dd2f4f5d610c3c23 (diff) | |
download | Nim-abf511245a4c69af5745ba99e6e69527a347dbf9.tar.gz |
nice error message
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r-- | lib/pure/concurrency/threadpool.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 3c636d1ce..e0a2ac678 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -9,6 +9,9 @@ ## Implements Nimrod's 'spawn'. +when not compileOption("threads"): + {.error: "Threadpool requires --threads:on option.".} + import cpuinfo, cpuload, locks {.push stackTrace:off.} |