MCPcopy Create free account
hub / github.com/android/ndk-samples / quit

Method quit

native-codec/app/src/main/cpp/looper.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void looper::quit() {
133 LOGV("quit");
134 loopermessage* msg = new loopermessage();
135 msg->what = 0;
136 msg->obj = NULL;
137 msg->next = NULL;
138 msg->quit = true;
139 addmsg(msg, false);
140 void* retval;
141 pthread_join(worker, &retval);
142 sem_destroy(&headdataavailable);
143 sem_destroy(&headwriteprotect);
144 running = false;
145}
146
147void looper::handle(int what, void* obj) {
148 LOGV("dropping msg %d %p", what, obj);

Callers 1

ShutdownFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected