Function t8_forest_ghost_destroy

Function Documentation

void t8_forest_ghost_destroy(t8_forest_ghost_t *pghost)

Verify that a ghost structure has only one reference left and destroy it.

This function is preferred over t8_forest_ghost_unref when it is known that the last reference is to be deleted.

Parameters:

pghost[inout] This ghost structure must have a reference count of one. It can be in any state (committed or not). Then it effectively calls t8_forest_ghost_unref.