MCPcopy Create free account
hub / github.com/RetypeOS/parcode / reset

Method reset

examples/memory_test.rs:44–47  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

42 }
43
44 fn reset(&self) {
45 self.allocated.store(0, Ordering::SeqCst);
46 self.peak.store(0, Ordering::SeqCst);
47 }
48
49 fn peak(&self) -> usize {
50 self.peak.load(Ordering::SeqCst)

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected