MCPcopy Create free account
hub / github.com/TzuHuanTai/RaspberryPi-WebRTC / front

Method front

src/common/thread_safe_queue.h:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 std::optional<T> front() {
59 std::lock_guard<std::mutex> lock(mutex_);
60 if (queue_.empty()) {
61 return std::nullopt;
62 }
63 T t = queue_.front();
64 return t;
65 }
66
67 bool full() {
68 std::lock_guard<std::mutex> lock(mutex_);

Callers 5

parser.cppFile · 0.80
SendLoopMethod · 0.80
popMethod · 0.80
RotateFilesMethod · 0.80
DoWriteMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected