This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Something like vector-grow available?


Jost Boekemeier <jostobfe@calvados.zrz.TU-Berlin.DE> writes:

> I'll have to go through the list to check if one of my (not marked)
> scheme_observers has been zombified befor calling a scheme_observer.
> This helps. But what I really need would be a simple notification (a
> callback) directly from the garbage collector telling me that this
> object will (or has been) removed.

install an after-GC hook which shakes the guardian.  you'll have to
store vector indices in the Scheme observers so you'll be able to
do

observers[o->idx].scheme_observer = SCM_BOOL_F;

or something like that.  did I understand the problem?

> Jost

--mike

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]