MCPcopy Create free account
hub / github.com/Gecode/gecode / free

Method free

gecode/kernel/memory/manager.hpp:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 return hc;
220 }
221 forceinline void
222 SharedMemory::free(HeapChunk* hc) {
223 Support::Lock guard(m());
224 if (heap.n_hc == MemoryConfig::n_hc_cache) {
225 Gecode::heap.rfree(hc);
226 } else {
227 heap.n_hc++;
228 hc->next = heap.hc; heap.hc = hc;
229 }
230 }
231
232
233}}

Callers 1

releaseMethod · 0.45

Calls 2

mFunction · 0.85
rfreeMethod · 0.45

Tested by

no test coverage detected