weakref semantics



I noticed the weakref introduction says that notifies can be called many times:

http://library.gnome.org/devel/gobject/unstable/gobject-memory.html#gobject-memory-weakref

   ... which is invoked when the object runs its dispose method. As such,
   each weak ref can be invoked more than once upon object finalization
   (since dispose can run more than once during object finalization).

I'm not sure this is right: looking at the source for gobject it seems
that the notifies are a fire-once thing, and are removed upon firing.

Should I open a docs bug on this? (or am I confused?)

John


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