Hi,

Andy Wingo <wi...@pobox.com> skribis:

> On Fri 17 Feb 2012 23:59, l...@gnu.org (Ludovic Courtès) writes:

[...]

>> What about using asyncs for that?  For instance, scm_i_finalize_smob
>> make a [deferred], instead of direct, call to the SMOB’s ‘free’, via
>> scm_i_queue_async_cell.
>
> It's an interesting idea.  I suspect that it only defers the problem,
> though: if we start running finalizers through asyncs, we'll run into
> problems with locks at the scheme level.
>
> That is to say, just because you are in Scheme does not mean you can
> acquire any lock without deadlock.

Sure, but the libguile-level lock issue would go away, wouldn’t it?

Ludo’.

Reply via email to