[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GOOPS method cache locking bug?

From: Mikael Djurfeldt
Subject: Re: GOOPS method cache locking bug?
Date: Mon, 21 Apr 2003 19:17:36 +0200
User-agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.2 (gnu/linux)

Andreas Rottmann <address@hidden> writes:

> However, I found an inconsitency in the docs (in threads.c) for the
> make-mutex procedure; it says Guile mutexes are always recursive:
>   Locking a mutex that a thread already owns will succeed right away
>   and will not block the thread.  That is, Guile's mutexes are
>   @emph{recursive}.
> Nevertheless, when doing 
> (let ((m (make-mutex))) 
>   (lock-mutex m)
>   (lock-mutex m))
>  at the guile prompt, I get a deadlock.

The bug is the docs.  I haven't updated it yet (shame on me).  As
you've discovered, you type make-fair-mutex for recursive (and fair)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]