summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-05 11:42:35 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-05 11:42:35 +0200
commit33f4c5282f3f6f64cd97c30978d130b6efbc94ce (patch)
tree12bd38a498c228a63ead15fa4cd06a6c427d7640 /drivers
parent9cd62741bb0e2f410b2fb861f66e2cf10fe0334d (diff)
parent958ecf55fed9d236a6b0dca2a1b88e1b401df971 (diff)
Merge pull request #64819 from RandomShaper/enhance_thread_funcs
Enhance portability of threading
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/thread_posix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/thread_posix.cpp b/drivers/unix/thread_posix.cpp
index 6292d8b3bc..f6adbee108 100644
--- a/drivers/unix/thread_posix.cpp
+++ b/drivers/unix/thread_posix.cpp
@@ -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