pthread_key_t is respected to be an opaque type ...

This commit is contained in:
Araq 2011-05-20 16:19:45 +02:00
commit 90ad118219
3 changed files with 18 additions and 17 deletions

View file

@ -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()