Merge pull request #64819 from RandomShaper/enhance_thread_funcs

Enhance portability of threading
This commit is contained in:
Rémi Verschelde
2022-10-05 11:42:35 +02:00
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