Add function to get number of free entities
parent
6f3f391d8a
commit
3961366ac4
|
@ -230,3 +230,8 @@ void print_mempool_stats(char* buffer)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t get_num_of_free_entities(void)
|
||||||
|
{
|
||||||
|
return ent_mempool.free_list.count;
|
||||||
|
}
|
||||||
|
|
|
@ -13,4 +13,5 @@ void* get_component_wtih_id(ComponentEnum_t comp_type, unsigned long idx);
|
||||||
void free_component_to_mempool(ComponentEnum_t comp_type, unsigned long idx);
|
void free_component_to_mempool(ComponentEnum_t comp_type, unsigned long idx);
|
||||||
|
|
||||||
void print_mempool_stats(char* buffer);
|
void print_mempool_stats(char* buffer);
|
||||||
|
uint32_t get_num_of_free_entities(void);
|
||||||
#endif //__MEMPOOL_H
|
#endif //__MEMPOOL_H
|
||||||
|
|
Loading…
Reference in New Issue