From: Taylor R Campbell Date: Tue, 9 Jun 2015 04:22:11 +0000 (+0000) Subject: No recursion needed: use WITH-THREAD-MUTEX-LOCK. X-Git-Tag: mit-scheme-pucked-9.2.12~376^2~90 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=ee1ab5b6edffd6c13ef13c3d738571c6b95e3a25;p=mit-scheme.git No recursion needed: use WITH-THREAD-MUTEX-LOCK. --- diff --git a/src/runtime/thread-queue.scm b/src/runtime/thread-queue.scm index a60b8a381..53f8c9e34 100644 --- a/src/runtime/thread-queue.scm +++ b/src/runtime/thread-queue.scm @@ -74,12 +74,12 @@ USA. (thread-mutex-owner (%thread-queue/mutex queue))) (define (with-queue-locked queue thunk) - (with-thread-mutex-locked (%thread-queue/mutex queue) + (with-thread-mutex-lock (%thread-queue/mutex queue) (lambda () (with-thread-events-blocked thunk)))) (define (with-queue-unlocked queue thunk) - (with-thread-mutex-unlocked (%thread-queue/mutex queue) + (without-thread-mutex-lock (%thread-queue/mutex queue) ;; suspend-current-thread will unblock (and re-block) thread-events thunk))