diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-25 10:40:33 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-25 10:41:23 -0300 |
commit | 8dac3bf3b10406d05c4d520e81082e490e3b76ff (patch) | |
tree | fa7cd3a9a8f5758855969bf8488b6cd141eb1bbc /core/os | |
parent | c931ed976b5952d7f0972f4c8c4efe279db456ac (diff) |
Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/thread.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/os/thread.h b/core/os/thread.h index 7349b83dbc..5f0ec707f2 100644 --- a/core/os/thread.h +++ b/core/os/thread.h @@ -39,6 +39,8 @@ typedef void (*ThreadCreateCallback)(void *p_userdata); + + class Thread { public: @@ -65,15 +67,14 @@ protected: static void (*wait_to_finish_func)(Thread*); static Error (*set_name_func)(const String&); - friend class Main; + friend class Main; - static ID _main_thread_id; + static ID _main_thread_id; Thread(); public: - virtual ID get_ID() const=0; static Error set_name(const String &p_name); |