mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
parent
1d418afe86
commit
f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions
|
|
@ -28,13 +28,12 @@
|
|||
/*************************************************************************/
|
||||
#include "thread.h"
|
||||
|
||||
Thread *(*Thread::create_func)(ThreadCreateCallback, void *, const Settings &) = NULL;
|
||||
Thread::ID (*Thread::get_thread_ID_func)() = NULL;
|
||||
void (*Thread::wait_to_finish_func)(Thread *) = NULL;
|
||||
Error (*Thread::set_name_func)(const String &) = NULL;
|
||||
|
||||
Thread* (*Thread::create_func)(ThreadCreateCallback,void *,const Settings&)=NULL;
|
||||
Thread::ID (*Thread::get_thread_ID_func)()=NULL;
|
||||
void (*Thread::wait_to_finish_func)(Thread*)=NULL;
|
||||
Error (*Thread::set_name_func)(const String&)=NULL;
|
||||
|
||||
Thread::ID Thread::_main_thread_id=0;
|
||||
Thread::ID Thread::_main_thread_id = 0;
|
||||
|
||||
Thread::ID Thread::get_caller_ID() {
|
||||
|
||||
|
|
@ -43,11 +42,11 @@ Thread::ID Thread::get_caller_ID() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
Thread* Thread::create(ThreadCreateCallback p_callback,void * p_user,const Settings& p_settings) {
|
||||
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 create_func(p_callback, p_user, p_settings);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -56,7 +55,6 @@ 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) {
|
||||
|
|
@ -67,13 +65,8 @@ Error Thread::set_name(const String &p_name) {
|
|||
return ERR_UNAVAILABLE;
|
||||
};
|
||||
|
||||
Thread::Thread()
|
||||
{
|
||||
Thread::Thread() {
|
||||
}
|
||||
|
||||
|
||||
Thread::~Thread()
|
||||
{
|
||||
Thread::~Thread() {
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue