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

Method clear

include/openpose/thread/queueBase.hpp:419–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418 template<typename TDatums, typename TQueue>
419 void QueueBase<TDatums, TQueue>::clear()
420 {
421 try
422 {
423 const std::lock_guard<std::mutex> lock{mMutex};
424 while (!mTQueue.empty())
425 mTQueue.pop();
426 }
427 catch (const std::exception& e)
428 {
429 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
430 }
431 }
432
433 template<typename TDatums, typename TQueue>
434 unsigned long long QueueBase<TDatums, TQueue>::getMaxSize() const

Callers 8

configureMethod · 0.45
resetMethod · 0.45
resetMethod · 0.45
configureThreadManagerFunction · 0.45
~WrapperTMethod · 0.45
setWorkerMethod · 0.45
getBuildInfoMethod · 0.45

Calls 4

whatMethod · 0.80
errorFunction · 0.50
emptyMethod · 0.45
popMethod · 0.45

Tested by 2

configureMethod · 0.36
resetMethod · 0.36