diff options
author | Ariel Manzur <ariel@godotengine.org> | 2015-12-17 06:24:27 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@godotengine.org> | 2015-12-17 06:24:27 -0300 |
commit | 10298b9534937c8662fe6bea6dcf79457bd53970 (patch) | |
tree | f329c7c04aa20a5e6d1b3fd4a7d366bbf49842cc /core/os | |
parent | 6c3c20fc35cfe324a55409bd3d8fb0f0028774fe (diff) |
thread set name
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/thread.cpp | 5 | ||||
-rw-r--r-- | core/os/thread.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/core/os/thread.cpp b/core/os/thread.cpp index 96b0f561ca..53db62c176 100644 --- a/core/os/thread.cpp +++ b/core/os/thread.cpp @@ -58,6 +58,11 @@ void Thread::wait_to_finish(Thread *p_thread) { } +Error Thread::set_name(const String &p_name) { + + return ERR_UNAVAILABLE; +}; + Thread::Thread() { } diff --git a/core/os/thread.h b/core/os/thread.h index 590fee1fc6..e3d00b0397 100644 --- a/core/os/thread.h +++ b/core/os/thread.h @@ -35,6 +35,7 @@ @author Juan Linietsky <reduzio@gmail.com> */ +#include "ustring.h" typedef void (*ThreadCreateCallback)(void *p_userdata); @@ -71,7 +72,8 @@ protected: Thread(); public: - + + virtual Error set_name(const String& p_name); virtual ID get_ID() const=0; |