[Top][All Lists]

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

Re: Critical section review

From: Mikael Djurfeldt
Subject: Re: Critical section review
Date: Wed, 23 Mar 2005 09:58:21 +0100

On Wed, 23 Mar 2005 08:16:00 +0000, Neil Jerram <address@hidden> wrote:
> OK, to get the ball rolling and fill in my understanding:
> scm_make_memoized() in debug.c has:
>    SCM_NEWSMOB (z, SCM_UNPACK (exp), SCM_UNPACK (env));
>    SCM_NEWSMOB (ans, scm_tc16_memoized, SCM_UNPACK (z));
> So:
> - why do we need a critical section here?

We don't.

The above code is the result of multiple applications of query-replace
during several years of GUile development. All four lines should be
replaced by a call to SCM_RETURN_NEWSMOB.


reply via email to

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