MCPcopy Create free account
hub / github.com/OpenCalib/LiDAR2INS / test_empty_runqueue

Function test_empty_runqueue

eigen3/unsupported/test/cxx11_runqueue.cpp:120–155  ·  view source on GitHub ↗

Empty tests that the queue is not claimed to be empty when is is in fact not. Emptiness property is crucial part of thread pool blocking scheme, so we go to great effort to ensure this property. We create a queue with 1 element and then push 1 element (either front or back at random) and pop 1 element (either front or back at random). So queue always contains at least 1 element, but otherwise chan

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

EIGEN_DECLARE_TESTFunction · 0.85

Calls 9

PushFrontMethod · 0.80
PushBackMethod · 0.80
PopFrontMethod · 0.80
PopBackHalfMethod · 0.80
rand_reentrantFunction · 0.70
clearMethod · 0.45
sizeMethod · 0.45
EmptyMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected