Struct StaticMemAlloc

Struct Documentation

struct mgb::cg::event::StaticMemAlloc

after static memory allocation strategy is determined on a computing node; the subscribers can set *need_realloc to indicate that static memory allocator should be re-run

This event would be issued for static memory allocation on each comp node, and after static memory alloc finished, it would be issued with need_realloc == nullptr, comp_node being invalid and alloc_size == 0 to indicate allocation has finished.

Public Members

bool *need_realloc
CompNode comp_node
size_t alloc_size
MGB_TYPEINFO_OBJ_DECL