Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ full
Method
full
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:141–144 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
139
140
template<class T>
141
bool BlockDeque<T>::full(){
142
std::lock_guard<std::mutex> locker(mtx_);
143
return deq_.size() >= capacity_;
144
}
145
146
template<class T>
147
bool BlockDeque<T>::pop(T &item) {
Callers
1
write
Method · 0.45
Calls
1
size
Method · 0.45
Tested by
no test coverage detected