mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
committed by
Rémi Verschelde
parent
830947feaf
commit
424a104666
@@ -37,26 +37,26 @@ Error (*Thread::set_name_func)(const String&)=NULL;
|
||||
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 NULL;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user