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

Method allocate

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

Source from the content-addressed store, hash-verified

21}
22
23void* pool_t::allocate()
24{
25 void* block;
26 if (blocks.try_dequeue(block))
27 return block;
28 {
29 SkrZoneScopedN("DualPoolAllocation");
30 return sugoi_calloc(1, blockSize);
31 }
32}
33
34void pool_t::free(void* block)
35{

Callers 15

pin_staging_bufferMethod · 0.45
add_requestMethod · 0.45
addUploadRequestsMethod · 0.45
enqueueAndSubmitMethod · 0.45
open_batchMethod · 0.45
open_texture_requestMethod · 0.45
open_buffer_requestMethod · 0.45
add_requestMethod · 0.45
enqueueAndSubmitMethod · 0.45
open_batchMethod · 0.45
open_requestMethod · 0.45
schedule_ecs_jobMethod · 0.45

Calls 1

try_dequeueMethod · 0.45

Tested by

no test coverage detected