« Home » « Learn » « Download » « Github »

logo

Cello High Level C

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);

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

Implements

  • Currentcurrent
  • Docname brief description definition
  • Getget set mem rem key_type val_type
  • Newnew del construct destruct
  • Showshow look print scan
  • Startwith start stop join running

Back