Merge pull request #64819 from RandomShaper/enhance_thread_funcs

Enhance portability of threading
This commit is contained in:
Rémi Verschelde 2022-10-05 11:42:35 +02:00
commit 33f4c5282f
4 changed files with 29 additions and 34 deletions

View file

@ -63,7 +63,7 @@ static void term_thread() {
void init_thread_jandroid(JavaVM *p_jvm, JNIEnv *p_env) {
java_vm = p_jvm;
env = p_env;
Thread::_set_platform_funcs(nullptr, nullptr, &init_thread, &term_thread);
Thread::_set_platform_functions({ .init = init_thread, .term = &term_thread });
}
void setup_android_thread() {