From c1028b336322ad09cda83ba2cf6e1d9ea2a84bc5 Mon Sep 17 00:00:00 2001 From: Anatoly Galiulin Date: Wed, 17 Feb 2016 20:44:48 +0600 Subject: [PATCH] Added fixes from Araq's comments --- lib/core/rlocks.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/rlocks.nim b/lib/core/rlocks.nim index 3316ffcd49..2327153c00 100644 --- a/lib/core/rlocks.nim +++ b/lib/core/rlocks.nim @@ -1,7 +1,7 @@ # # # Nim's Runtime Library -# (c) Copyright 2015 Andreas Rumpf +# (c) Copyright 2015 Anatoly Galiulin # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -40,7 +40,7 @@ proc release*(lock: var RLock) = ## Releases the given lock. releaseSys(lock) -template withRLock*(lock: var RLock, code: stmt): stmt = +template withRLock*(lock: var RLock, code: untyped): untyped = ## Acquires the given lock and then executes the code block: acquire(lock)