mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Merge branch 'weak-refs-docs' into 'main'
gobject: Clarify behaviour of adding weak refs during disposal See merge request GNOME/glib!2255
This commit is contained in:
commit
98e0789fea
@ -4585,11 +4585,14 @@ g_initially_unowned_class_init (GInitiallyUnownedClass *klass)
|
|||||||
* objects.
|
* objects.
|
||||||
*
|
*
|
||||||
* If the object's #GObjectClass.dispose method results in additional
|
* If the object's #GObjectClass.dispose method results in additional
|
||||||
* references to the object being held, any #GWeakRefs taken
|
* references to the object being held (‘re-referencing’), any #GWeakRefs taken
|
||||||
* before it was disposed will continue to point to %NULL. If
|
* before it was disposed will continue to point to %NULL. Any #GWeakRefs taken
|
||||||
* #GWeakRefs are taken after the object is disposed and
|
* during disposal and after re-referencing, or after disposal has returned due
|
||||||
* re-referenced, they will continue to point to it until its refcount
|
* to the re-referencing, will continue to point to the object until its refcount
|
||||||
* goes back to zero, at which point they too will be invalidated.
|
* goes back to zero, at which point they too will be invalidated.
|
||||||
|
*
|
||||||
|
* It is invalid to take a #GWeakRef on an object during #GObjectClass.dispose
|
||||||
|
* without first having or creating a strong reference to the object.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user