Fixed severe bug in WITH-LOCK. Noted by Taylor Campbell
This commit is contained in:
parent
f328c0537f
commit
a65a5c5f86
|
@ -63,7 +63,7 @@
|
||||||
(define (with-lock lock thunk)
|
(define (with-lock lock thunk)
|
||||||
(dynamic-wind
|
(dynamic-wind
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(release-lock lock))
|
(obtain-lock lock))
|
||||||
thunk
|
thunk
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(release-lock lock))))
|
(release-lock lock))))
|
||||||
|
|
Loading…
Reference in New Issue