MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / push

Method push

libapp2sys/src/main/cpp/util.h:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void push(T obj) {
99 sem_wait(&_semmax);
100 pthread_mutex_lock(&_mutex);
101 _q.push_back(obj);
102 pthread_mutex_unlock(&_mutex);
103 sem_post(&_semcnt);
104 }
105
106 T pop() {
107 sem_wait(&_semcnt);

Callers 9

checkSendQueueMethod · 0.80
sendMethod · 0.80
sendDataMethod · 0.80
recvEventMethod · 0.80
onCallbackMethod · 0.80
recvEventMethod · 0.80
onEventMethod · 0.80
onANRMethod · 0.80
callbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected