#include <include/flecs.h> FLECS_API void ecs_begin_wait(ecs_world_t *world)
Wait until world becomes available. When a non-flecs thread needs to interact with the world, it should invoke this function to wait until the world becomes available (as in, it is not progressing the frame). Invoking this function guarantees that the thread will not starve. (as opposed to simply taking the world lock).
An application will have to invoke ecs_end_wait after this function returns.
world- The world.