Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WiVRn/WiVRn
/ drop_until
Method
drop_until
common/utils/sync_queue.h:105–111 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
103
104
template <typename Pred>
105
void drop_until(Pred && pred)
106
{
107
std::unique_lock lock(mutex);
108
109
while (!queue.empty() && !pred(queue.front()))
110
queue.pop_front();
111
}
112
113
T & peek()
114
{
Callers
1
on_image_available
Method · 0.80
Calls
3
empty
Method · 0.45
front
Method · 0.45
pop_front
Method · 0.45
Tested by
no test coverage detected