summaryrefslogtreecommitdiff
path: root/platform/winrt
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-25 10:40:33 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-25 10:41:23 -0300
commit8dac3bf3b10406d05c4d520e81082e490e3b76ff (patch)
treefa7cd3a9a8f5758855969bf8488b6cd141eb1bbc /platform/winrt
parentc931ed976b5952d7f0972f4c8c4efe279db456ac (diff)
Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
Diffstat (limited to 'platform/winrt')
-rw-r--r--platform/winrt/thread_winrt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/winrt/thread_winrt.cpp b/platform/winrt/thread_winrt.cpp
index 097050e511..e7028bd9dc 100644
--- a/platform/winrt/thread_winrt.cpp
+++ b/platform/winrt/thread_winrt.cpp
@@ -33,6 +33,8 @@
Thread* ThreadWinrt::create_func_winrt(ThreadCreateCallback p_callback,void *p_user,const Settings&) {
ThreadWinrt* thread = memnew(ThreadWinrt);
+
+
std::thread new_thread(p_callback, p_user);
std::swap(thread->thread, new_thread);