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

Method tryPop

include/openpose/thread/queueBase.hpp:224–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223 template<typename TDatums, typename TQueue>
224 bool QueueBase<TDatums, TQueue>::tryPop(TDatums& tDatums)
225 {
226 try
227 {
228 const std::lock_guard<std::mutex> lock{mMutex};
229 return pop(tDatums);
230 }
231 catch (const std::exception& e)
232 {
233 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
234 return false;
235 }
236 }
237
238 template<typename TDatums, typename TQueue>
239 bool QueueBase<TDatums, TQueue>::tryPop()

Callers 2

workMethod · 0.45
workMethod · 0.45

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected