GDExtension, thread, Callable and lambda function

Godot Version

4.2.2

Question

I am digging into multi-threading in GDExtension, as far as I know, it is not well documented. I now know I can use callable_mp for a member function to create a callable and then run on a Thread, but sometimes it is cleaner to use lambda function, and it is possible in GDSCript. Is there a way to do this with C++ lambda or std::function?

1 Like