[Top][All Lists]

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

Re: (guix git) and guile-git finalizers.

From: Andy Wingo
Subject: Re: (guix git) and guile-git finalizers.
Date: Tue, 13 Jun 2017 10:47:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

On Mon 12 Jun 2017 14:44, Mathieu Othacehe <address@hidden> writes:

> Maybe the right answer is to disable auto finalization and call
> run-finalizers as described here :
> However I can't find guile counterparts for those libguile functions.

Nice sleuthing!

If you want to manually handle finalization at 'safe' points from
Scheme, guardians are the things to use.  Add your "finalizable" object
to a guardian, and periodically "pump" the guardian to see if anything
is finalizable; you can run the finalizer there.


reply via email to

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