IVGCVSW-3937 Update the Send thread to send out the Metadata packet
authorMatteo Martincigh <matteo.martincigh@arm.com>
Mon, 7 Oct 2019 12:05:13 +0000 (13:05 +0100)
committerMatteo Martincigh <matteo.martincigh@arm.com>
Tue, 8 Oct 2019 09:43:50 +0000 (10:43 +0100)
commit5d737fb3b06c17ff6b65fb307343ca1c0c680401
tree91c5548fd4e84ff086e57020a017982124b06c50
parentc2728f95086c54aa842e4c1dae8f3b5c290a72fa
IVGCVSW-3937 Update the Send thread to send out the Metadata packet

 * The Send thread now automatically sends out Stream Metadata packets when
   the Profiling Service is in WaitingForAck state
 * Added a reference to the profiling state in the SendCounterPacket class
 * Moving the RuntimeException thrown in the Send thread to the main thread
   for rethrowing
 * The Stop method now rethrows the exception occurred in the send thread
 * The Stop method does not rethrow when destructing the object
 * Added unit tests

Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: Ice7080bff63199eac84fc4fa1d37fb1a6fcdff89
src/profiling/SendCounterPacket.cpp
src/profiling/SendCounterPacket.hpp
src/profiling/test/ProfilingTests.cpp
src/profiling/test/SendCounterPacketTests.cpp
src/profiling/test/SendCounterPacketTests.hpp