diff --git a/s48/concurrency/with-lock.scm b/s48/concurrency/with-lock.scm index c525d72..1d3136c 100644 --- a/s48/concurrency/with-lock.scm +++ b/s48/concurrency/with-lock.scm @@ -7,7 +7,7 @@ (define (with-lock lock thunk) (dynamic-wind (lambda () - (release-lock lock)) + (obtain-lock lock)) thunk (lambda () (release-lock lock))))