IVGCVSW-4129 Fix thread starvation due to low capture periods
* Set default capture period to 10mSec.
* Validate capture period in PeriodicCounterSelectionCommandHandler
pull it up to 10mSec if it is lower.
* Fix segmentation fault in GatordMock when receive thread closes.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I9f7ddc70bd99c102c5baef872d28329976a4dc07
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp
index 3d3ab65..94f4530 100644
--- a/include/armnn/Types.hpp
+++ b/include/armnn/Types.hpp
@@ -16,6 +16,9 @@
constexpr unsigned int MaxNumOfTensorDimensions = 5U;
+// The lowest performance data capture interval we support is 10 miliseconds.
+constexpr unsigned int LOWEST_CAPTURE_PERIOD = 10000u;
+
/// @enum Status enumeration
/// @var Status::Successful
/// @var Status::Failure