MCPcopy Create free account
hub / github.com/baidu/babylon / next_sequence

Method next_sequence

src/babylon/application_context.cpp:201–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199////////////////////////////////////////////////////////////////////////////////
200
201size_t ApplicationContext::ComponentHolder::next_sequence() noexcept {
202 static ::std::atomic<size_t> counter {1};
203 return counter.fetch_add(1, ::std::memory_order_relaxed);
204}
205
206ptrdiff_t ApplicationContext::ComponentHolder::convert_offset(
207 const Id* type) const noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected