Mercurial
view gara/android/ndk/app/src/main/cpp/native-lib.cpp @ 62:ea9ef388ab97
[Seobeo] Fixed issues with epoll or kqeue in different threads. Initizlied the event looop inside of the thread itself.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2025 11:48:11 -0800 |
| parents | 829623189a57 |
| children |
line wrap: on
line source
#include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICALL Java_com_example_android_bazel_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); }