chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] set-finalizer! and disable-interrupts


From: felix winkelmann
Subject: Re: [Chicken-users] set-finalizer! and disable-interrupts
Date: Fri, 2 Mar 2007 08:11:24 +0100

On 3/2/07, Hans Bulfone <address@hidden> wrote:
hi,

the documentation of set-finalizer! contains:

"Note that the finalizer will not be called when interrupts are disabled."

does this mean that when an object with a finalizer happens to be
garbage-collected while some code in a unit with disabled interrupts
is running
(a) the finalizer is not invoked at all or
(b) the invokation is deferred until interrupts are enabled again?

(b)


if (a) then i can't really depend on a finalizer being called, correct?

if (b) then i'd change "when" to "while" in the documentation.


Done. Thanks.


cheers,
felix




reply via email to

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