summaryrefslogtreecommitdiff
path: root/core/os/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/thread.cpp')
-rw-r--r--core/os/thread.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/os/thread.cpp b/core/os/thread.cpp
index a8eb0b2a9f..399efb19a4 100644
--- a/core/os/thread.cpp
+++ b/core/os/thread.cpp
@@ -38,29 +38,24 @@ Error (*Thread::set_name_func)(const String &) = nullptr;
Thread::ID Thread::_main_thread_id = 0;
Thread::ID Thread::get_caller_id() {
-
if (get_thread_id_func)
return get_thread_id_func();
return 0;
}
Thread *Thread::create(ThreadCreateCallback p_callback, void *p_user, const Settings &p_settings) {
-
if (create_func) {
-
return create_func(p_callback, p_user, p_settings);
}
return nullptr;
}
void Thread::wait_to_finish(Thread *p_thread) {
-
if (wait_to_finish_func)
wait_to_finish_func(p_thread);
}
Error Thread::set_name(const String &p_name) {
-
if (set_name_func)
return set_name_func(p_name);