MCPcopy 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_availableMethod · 0.80

Calls 3

emptyMethod · 0.45
frontMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected