Macaulay2 Engine
Loading...
Searching...
No Matches

◆ intern_res()

void intern_res ( ResolutionComputation * G)

Definition at line 144 of file finalize.cpp.

145{
146#ifdef MEMDEBUG
147 GC_REGISTER_FINALIZER(M2_debug_to_outer(G), remove_res, 0, 0, 0);
148#else
149 GC_REGISTER_FINALIZER( G , remove_res, nullptr, nullptr, nullptr);
150#endif
151 std::atomic<int> nfinalized = res_nfinalized++;
152 if (M2_gbTrace >= 3)
153 fprintf(
154 stderr, "\n -- registering res %d at %p\n", nfinalized.load(),
155 (void *)G);
156}
void remove_res(void *p, void *cd)
Definition finalize.cpp:132
static volatile std::atomic< int > res_nfinalized
Definition finalize.cpp:32
int M2_gbTrace
Definition m2-types.cpp:52
tbb::flow::graph G

References G, M2_gbTrace, remove_res(), and res_nfinalized.

Referenced by ResolutionComputation::choose_res().