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

Method post

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

Source from the content-addressed store, hash-verified

69}
70
71void looper::post(int what, void* data, bool flush) {
72 loopermessage* msg = new loopermessage();
73 msg->what = what;
74 msg->obj = data;
75 msg->next = NULL;
76 msg->quit = false;
77 addmsg(msg, flush);
78}
79
80void looper::addmsg(loopermessage* msg, bool flush) {
81 sem_wait(&headwriteprotect);

Callers 5

doCodecWorkFunction · 0.80
ShutdownFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected