From 90ad1182191ed42f5c6cad707a112183b43b713c Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 20 May 2011 16:19:45 +0200 Subject: pthread_key_t is respected to be an opaque type ... --- lib/core/threads.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/core/threads.nim') diff --git a/lib/core/threads.nim b/lib/core/threads.nim index 77253af20..eb0c69060 100755 --- a/lib/core/threads.nim +++ b/lib/core/threads.nim @@ -320,6 +320,7 @@ when isMainModule: else: assert false else: Aquire(L) # lock stdout + Aquire(M) echo i os.sleep(10) @@ -327,7 +328,7 @@ when isMainModule: echo "deadlocks prevented: ", deadlocksPrevented when nodeadlocks: Release(N) - Release(M) + Release(M) Release(L) InitLock(L) @@ -340,7 +341,7 @@ when isMainModule: for i in 0..high(thr): joinThread(thr[i]) - GC_disable() + #GC_disable() main() - GC_enable() + #GC_enable() -- cgit 1.4.1-2-gfad0