Fixes concurrency issue in SampleTester and recent derived BufferProbeTester that was only showing on GitHub Actions testing. Because the pipeline was being started outside of the synchronized block the callback was occasionally called before the calling code had started waiting, causing an indefinite hang. Added use of CountDownLatch and timeout instead.
Fixes concurrency issue in SampleTester and recent derived BufferProbeTester that was only showing on GitHub Actions testing. Because the pipeline was being started outside of the synchronized block the callback was occasionally called before the calling code had started waiting, causing an indefinite hang. Added use of CountDownLatch and timeout instead.
cc / @jcortellatmagicleap