1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Enhance portability of threading

This commit is contained in:
Pedro J. Estébanez
2022-08-24 11:33:52 +02:00
parent 1371a97acf
commit 958ecf55fe
4 changed files with 29 additions and 34 deletions

View File

@@ -70,7 +70,7 @@ static Error set_name(const String &p_name) {
}
void init_thread_posix() {
Thread::_set_platform_funcs(&set_name, nullptr);
Thread::_set_platform_functions({ .set_name = set_name });
}
#endif // UNIX_ENABLED || PTHREAD_ENABLED