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

Method front

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

Source from the content-addressed store, hash-verified

49
50 template<typename TDatums, typename TQueue>
51 TDatums Queue<TDatums, TQueue>::front() const
52 {
53 try
54 {
55 const std::lock_guard<std::mutex> lock{this->mMutex};
56 return this->mTQueue.front();
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 Queue<TDatums, TQueue>::pop(TDatums& tDatums)

Callers 15

updateFpsFunction · 0.45
workProducerMethod · 0.45
popMethod · 0.45
waitForEventsMethod · 0.45
WaitForEventsFunction · 0.45
ProgramMethod · 0.45
enqueueReadBufferMethod · 0.45
enqueueWriteBufferMethod · 0.45
enqueueCopyBufferMethod · 0.45
enqueueReadBufferRectMethod · 0.45
enqueueCopyBufferRectMethod · 0.45

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected