diff options
author | Araq <rumpf_a@web.de> | 2011-05-20 16:19:45 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-05-20 16:19:45 +0200 |
commit | 90ad1182191ed42f5c6cad707a112183b43b713c (patch) | |
tree | 01a8b4c1a6c5e861104d39e12e2f5aefb82856ea /lib/core/threads.nim | |
parent | c70fa87471c6963dd39653358e2f0f8ac59797d9 (diff) | |
download | Nim-90ad1182191ed42f5c6cad707a112183b43b713c.tar.gz |
pthread_key_t is respected to be an opaque type ...
Diffstat (limited to 'lib/core/threads.nim')
-rwxr-xr-x | lib/core/threads.nim | 7 |
1 files changed, 4 insertions, 3 deletions
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() |