Implement a reference queue API.
commitfd57b963ad3e43cc1d7c6a5bad87d9342d9038e0
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 1 Feb 2011 15:58:37 +0000 (1 16:58 +0100)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 1 Feb 2011 16:35:11 +0000 (1 17:35 +0100)
tree0f2b31719a804929c55fc6b44ed10697a1d474f3
parent88bfc71d89d4a0c71014161456dabf1f7d8a5467
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