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

Method run

android/samples/fiber/http/src/main/cpp/fiber_waiter.cpp:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void fiber_waiter::run(void) {
23 log_info(">>>waiter fiber started!");
24
25 // can't call any jni function in fiber.
26 // test();
27
28 while (true) {
29 // blocking wait for one task;
30 http_task* t = box_->pop();
31
32 // pop one http task and create one fiber to handle it
33 go_stack(1024000)[=] {
34 http_get request(t);
35 request.run();
36 t->done();
37 };
38 }
39}

Callers

nothing calls this directly

Calls 3

log_infoFunction · 0.70
popMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected