1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

SRFI-18 mutexes are not recursive

* module/srfi/srfi-18.scm (make-mutex): Not recursive.
This commit is contained in:
Andy Wingo 2016-11-05 09:40:43 +01:00
parent b197a6a5af
commit b43f11469a

View file

@ -286,16 +286,9 @@
(else v))))))) (else v)))))))
;; MUTEXES ;; MUTEXES
;; These functions are all pass-thrus to the existing Guile implementations.
(define* (make-mutex #:optional name) (define* (make-mutex #:optional name)
(%make-mutex (threads:make-mutex 'unchecked-unlock (%make-mutex (threads:make-mutex 'allow-external-unlock) name #f #f #f))
'allow-external-unlock
'recursive)
name
#f
#f
#f))
(define (mutex-state mutex) (define (mutex-state mutex)
(cond (cond