Cello • Gc
Examples
Starting & Stopping
var gc = current(GC);
stop(gc);
var x = new(Int, $I(10)); /* Not added to GC */
show($I(running(gc))); /* 0 */
del(x); /* Must be deleted when done */
start(gc);
Garbage Collector
The GC type provides an interface to the Cello Garbage Collector. One instance of this type is created for each thread and can be retrieved using the current function. The Garbage Collector can be stopped and started using start and stop and objects can be added or removed from the Garbage Collector using set and rem.
Derives
- Alloc
$allocdealloc - Assign
assign - Cast
cast - Cmp
cmpeqneqgtltgele - Copy
copy - Hash
hashhash_data - Size
size - Swap
swap
Implements
- Current
current - Doc
namebriefdescriptiondefinition - Get
getsetmemremkey_typeval_type - New
newdelconstructdestruct - Show
showlookprintscan - Start
withstartstopjoinrunning