MCPcopy Create free account
hub / github.com/XpuOS/xsched / ObjectPool

Method ObjectPool

utils/include/xsched/utils/pool.h:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11public:
12 ObjectPool(size_t pool_size = 512): kPoolSize(pool_size) { pool_.reserve(kPoolSize); }
13 virtual ~ObjectPool() { for (auto obj : pool_) Destroy(obj); }
14
15 void *Pop()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected