Files
glib/docs
Emmanuele Bassi c7cac3bc40 Add reference counted memory areas
A lot of our data structures are reference counted these days. It can be
useful to allow creating reference counted data without necessarily
duplicating all the reference counting machinery — a field in the
struct, reference and unreference functions, a GDestroyNotify-compatible
function for destroying the contents.

We can re-use the same overallocation and pointer offset trick we use
when allocating a GTypeInstance in gobject, and add all the reference
counting meta-information directly on top of the allocation size.

https://bugzilla.gnome.org/show_bug.cgi?id=622721
2015-02-08 12:43:48 +00:00
..
2013-10-17 13:20:14 -04:00