Function get_stage_id

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

int32_t get_stage_id() const

Description

Get current stage id. The stage id can be used by an application to learn about which stage it is using, which typically corresponds with the worker thread id.

Returns
The stage id.

Source

Lines 317-319 in include/flecs/addons/cpp/world.hpp.

int32_t get_stage_id() const {
    return ecs_get_stage_id(m_world);
}