lilypond-devel
[Top][All Lists]
Advanced

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

Re: Context_handle


From: David Kastrup
Subject: Re: Context_handle
Date: Sun, 08 Jul 2018 20:11:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Dan Eble <address@hidden> writes:

> What is the purpose of Context_handle?  It looks like a scoped
> contribution to a reference count until the destructor:
>
>> Context_handle::~Context_handle ()
>> {
>>   /*
>>     Don't do
>>     if (outlet_)
>>     down ();
>>     with GC, this is asynchronous.
>>   */
>> }
>
> I can understand garbage collection, and I can imagine coordinating
> garbage collection with reference counting, but coordinating garbage
> collection with leaky reference counting is hard to appreciate.

I think it's for providing a definite point of time for running the
finishing hooks of a context's iterators and making the context
unavailable for \context ... [= ...] continuations.

Garbage collection is not determinate.

I might be mistaken.

-- 
David Kastrup



reply via email to

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