IVGCVSW-3984 Fix CheckPeriodicCounterCaptureThread
authorFinn Williams <Finn.Williams@arm.com>
Mon, 14 Oct 2019 14:55:18 +0000 (15:55 +0100)
committerJim Flynn Arm <jim.flynn@arm.com>
Tue, 15 Oct 2019 09:22:03 +0000 (09:22 +0000)
commitf4d59a678d8ef8420f52d341bb60f1a583269e24
tree5a36aec70269d0194440aa3224b2187c86bf8c5b
parent91e1de786ddeee7fcd702a756ef47a475ff1bd46
IVGCVSW-3984 Fix CheckPeriodicCounterCaptureThread

 * PerodicCounterCapture now sleeps instead of terminating
   when reading empty counter data
 * m_IsRunning is now set to false after the thread is joined and
   is no longer atomic
 * removed usages of find() (not thread safe)

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Ie65d5a9a7e42a31653ec8eed064849355661ef56
src/profiling/PeriodicCounterCapture.cpp
src/profiling/PeriodicCounterCapture.hpp
src/profiling/PeriodicCounterSelectionCommandHandler.cpp
src/profiling/test/ProfilingTests.cpp