MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / reset

Method reset

modules/engine/runtime/src/ecs/pool.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void fixed_pool_t::reset()
76{
77 skr::ConcurrentQueue<size_t, ECSPoolConcurrentQueueTraits> temp(blockCount);
78 blocks.swap(temp);
79 skr::Vector<size_t> indicies;
80 indicies.resize_default(blockCount);
81 std::iota(indicies.begin(), indicies.end(), 0);
82 for (size_t i = 0; i < blockCount; ++i)
83 blocks.try_enqueue_bulk(indicies.data(), blockCount);
84}
85} // namespace sugoi

Callers 12

ensureRAMRequestsMethod · 0.45
pollSubmittedMethod · 0.45
pollSubmittedMethod · 0.45
ram_request.cppFile · 0.45
ConvertMethod · 0.45
DeserializeMethod · 0.45
DeserializeTextMethod · 0.45
schedule_ecs_jobMethod · 0.45
build_queriesMethod · 0.45
destruct_implFunction · 0.45
dtor_sharedFunction · 0.45
dtor_objectFunction · 0.45

Calls 7

iotaFunction · 0.85
try_enqueue_bulkMethod · 0.80
swapMethod · 0.45
resize_defaultMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected