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

Method front

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

Source from the content-addressed store, hash-verified

114 }
115
116 T front() {
117 pthread_mutex_lock(&_mutex);
118 T obj = _q.size() ? _q.front() : NULL;
119 pthread_mutex_unlock(&_mutex);
120 return obj;
121 }
122
123 unsigned int size() {
124 pthread_mutex_lock(&_mutex);

Callers 3

checkSendQueueMethod · 0.80
loopMethod · 0.80
popMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected