MCPcopy Create free account
hub / github.com/acl-dev/acl / run

Method run

android/samples/fiber/HttpFiber/src/main/cpp/Fiber.cpp:72–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71public:
72 void run(void) {
73 log_info(">>>fiber started<<<");
74 JNIEnv* env = get_env();
75 if (env == NULL) {
76 return;
77 }
78
79 log_info(">>>run: env=%p, o=%p<<<", env, o_);
80 //jclass clz = env->GetObjectClass(o_);
81 //log_info(">>>o=%p, clz=%p<<", o_, clz);
82
83 jobject fb = env->NewGlobalRef(o_);
84 jobject_set oper(env, fb);
85 oper.call("onRun");
86 //delete this;
87 }
88
89private:
90 jobject o_;

Callers 1

thread_callFunction · 0.45

Calls 3

callMethod · 0.80
log_infoFunction · 0.70
get_envFunction · 0.70

Tested by

no test coverage detected