Implement a reference queue API.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 1 Feb 2011 15:15:59 +0000 (16:15 +0100)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 1 Feb 2011 15:52:43 +0000 (16:52 +0100)
commit8eb1189099e02372fd45ca1c67230eccf1edddc0
tree0a795c36795c4c34b46e1626394f4cd92904117c
parent7424fef4425146cf5ef3ee12b30f71afd1bf26c1
Implement a reference queue API.

* gc.c: A reference queue allows one to queue
callbcks for when objects are collected.
It allows for safe cleanup of objects that can
only be done when it is effectively collected.
The major difference with regular finalization
is that the collector makes sure the object
was collected - and can't be resurrected.

* gc-internal.h: Export entrypoints for the
new API.
mono/metadata/gc-internal.h
mono/metadata/gc.c