Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
checkSendQueue
Method · 0.80
loop
Method · 0.80
pop
Method · 0.80
Calls
1
size
Method · 0.45
Tested by
no test coverage detected