MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / front

Method front

include/openpose/thread/priorityQueue.hpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50 template<typename TDatums, typename TQueue>
51 TDatums PriorityQueue<TDatums, TQueue>::front() const
52 {
53 try
54 {
55 const std::lock_guard<std::mutex> lock{this->mMutex};
56 return this->mTQueue.top();
57 }
58 catch (const std::exception& e)
59 {
60 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
61 return TDatums{};
62 }
63 }
64
65 template<typename TDatums, typename TQueue>
66 bool PriorityQueue<TDatums, TQueue>::pop(TDatums& tDatums)

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected