| 69 | } |
| 70 | |
| 71 | void 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 | |
| 80 | void looper::addmsg(loopermessage* msg, bool flush) { |
| 81 | sem_wait(&headwriteprotect); |
no outgoing calls
no test coverage detected