MCPcopy Create free account
hub / github.com/PhoneVR-Developers/PhoneVR / pop_front

Method pop_front

code/common/src/Utils/ThreadUtils.h:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void pop_front() {
34 std::unique_lock<std::mutex> mlock(mtx);
35 while (q.empty())
36 cond.wait(mlock);
37 q.pop();
38 }
39
40 void push_back(const T &item) {
41 std::unique_lock<std::mutex> mlock(mtx);

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
waitMethod · 0.80

Tested by

no test coverage detected