summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2022-08-24 11:33:52 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2022-10-04 11:43:28 +0200
commit958ecf55fed9d236a6b0dca2a1b88e1b401df971 (patch)
tree18ffc0e63ec6b6cab11cde3e4cd1ca88efc92d83 /drivers
parent1371a97acfb9263aaca7fa8642e95ba68534fa19 (diff)
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