1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Enhance portability of threading

This commit is contained in:
Pedro J. Estébanez
2022-08-24 11:33:52 +02:00
parent 1371a97acf
commit 958ecf55fe
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() {