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

Method empty

include/openpose/thread/queueBase.hpp:286–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285 template<typename TDatums, typename TQueue>
286 bool QueueBase<TDatums, TQueue>::empty() const
287 {
288 try
289 {
290 const std::lock_guard<std::mutex> lock{mMutex};
291 return mTQueue.empty();
292 }
293 catch (const std::exception& e)
294 {
295 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
296 return false;
297 }
298 }
299
300 template<typename TDatums, typename TQueue>
301 void QueueBase<TDatums, TQueue>::stop()

Callers 15

waitAndPopMethod · 0.45
stopMethod · 0.45
stopPusherMethod · 0.45
isRunningMethod · 0.45
clearMethod · 0.45
popMethod · 0.45
workMethod · 0.45
execMethod · 0.45
tryEmplaceMethod · 0.45
waitAndEmplaceMethod · 0.45
tryPushMethod · 0.45
waitAndPushMethod · 0.45

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected