Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS

This commit is contained in:
Juan Linietsky
2016-06-25 10:40:33 -03:00
parent c931ed976b
commit 8dac3bf3b1
7 changed files with 49 additions and 5 deletions

View File

@@ -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);