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

Method pop

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

Source from the content-addressed store, hash-verified

104 }
105
106 T pop() {
107 sem_wait(&_semcnt);
108 pthread_mutex_lock(&_mutex);
109 T obj = _q.front();
110 _q.pop_front();
111 pthread_mutex_unlock(&_mutex);
112 sem_post(&_semmax);
113 return obj;
114 }
115
116 T front() {
117 pthread_mutex_lock(&_mutex);

Callers 7

checkSendQueueMethod · 0.80
loopMethod · 0.80
uninitMethod · 0.80
localServerRespThreadMethod · 0.80
udpServerThreadMethod · 0.80
callbackThreadMethod · 0.80
callbackThreadMethod · 0.80

Calls 1

frontMethod · 0.80

Tested by

no test coverage detected