MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / gc_node

Method gc_node

src/misc/gc_node.cpp:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 // ---- gc_node ----
158
159 gc_node::gc_node() {
160 gc_id = gc_root::gc_next_id.fetch_add(1, std::memory_order_relaxed);
161 gc_check_break(gc_id);
162 gc_root::gc_get_active_root()->gc_link(this);
163 }
164
165 gc_node::gc_node ( const gc_node & ) {
166 // New node with new ID, linked to the active root. Does NOT copy list position.

Callers

nothing calls this directly

Calls 2

gc_check_breakFunction · 0.85
gc_linkMethod · 0.80

Tested by

no test coverage detected