Merge pull request #1210 from boydgreenfield/nimprof-lock-fix

Fix nimprof import error when --threads:on.
This commit is contained in:
Varriount 2014-05-21 17:55:07 -04:00
commit f05ba51391

View file

@ -60,6 +60,7 @@ when not defined(memProfiler):
else: interval = intervalInUs * 1000 - tickCountCorrection else: interval = intervalInUs * 1000 - tickCountCorrection
when withThreads: when withThreads:
import locks
var var
profilingLock: TLock profilingLock: TLock