Enhance portability of threading
This commit is contained in:
parent
1371a97acf
commit
958ecf55fe
4 changed files with 29 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue