Closed Esp9527 closed 1 year ago
That's correct, but the entire Flecs API is not thread safe :)
Anything that mutates the world should either happen when you have exclusive access to the world (e.g. component registration should happen on the main thread) or should be enqueued as command (e.g. ECS operations like add, remove, set, get_mut, etc).
Describe the bug _::type_name() is not thread-safe, that will cause memory error!
To Reproduce
`
` this will crash!
Follow a simple solution
` // modifier _::type_name()
` other function maybe also need, symbol_name() , enum_constant_to_name<E, E C> ...