MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / alloc

Method alloc

engine/source/runtime/function/particle/emitter_id_allocator.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 std::atomic<ParticleEmitterID> ParticleEmitterIDAllocator::m_next_id {0};
8
9 ParticleEmitterID ParticleEmitterIDAllocator::alloc()
10 {
11 std::atomic<ParticleEmitterID> new_emitter_ret = m_next_id.load();
12 m_next_id++;
13 if (m_next_id >= k_invalid_particke_emmiter_id)
14 {
15 LOG_FATAL("particle emitter id overflow");
16 }
17
18 return new_emitter_ret;
19 }
20
21} // namespace Piccolo

Callers 14

nk_file_loadFunction · 0.45
nk_buffer_initFunction · 0.45
nk_buffer_reallocFunction · 0.45
nk_tt_GetGlyphShapeFunction · 0.45
nk_tt__hheap_allocFunction · 0.45
nk_tt__rasterizeFunction · 0.45
nk_tt_FlattenCurvesFunction · 0.45
nk_tt_PackBeginFunction · 0.45
nk_font_atlas_addFunction · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected