mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-12 11:33:02 +01:00
g_object_weak_ref() documentation refers to GWeakRef as thread-safe replacement. However, it's not clear to me, how GWeakRef is a replacement for a callback. I think, it means, that you combine g_object_weak_ref() with GWeakRef, to both hold a (thread-safe) weak reference and get a notification on destruction. Add a test, that GWeakRef is already cleared inside the GWeakNotify callback.
8.0 KiB
8.0 KiB