From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- ...1_test_profiling_connection_timeout_error.xhtml | 253 +++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 21.02/classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml (limited to '21.02/classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml') diff --git a/21.02/classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml b/21.02/classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml new file mode 100644 index 0000000000..26ec88060f --- /dev/null +++ b/21.02/classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml @@ -0,0 +1,253 @@ + + + + + + + + + + + + + +ArmNN: TestProfilingConnectionTimeoutError Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TestProfilingConnectionTimeoutError Class Reference
+
+
+ +

#include <ProfilingTests.hpp>

+
+Inheritance diagram for TestProfilingConnectionTimeoutError:
+
+
+ + +TestProfilingConnectionBase +IProfilingConnection + +
+ + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 TestProfilingConnectionTimeoutError ()
 
arm::pipe::Packet ReadPacket (uint32_t timeout) override
 
int ReadCalledCount ()
 
- Public Member Functions inherited from TestProfilingConnectionBase
 TestProfilingConnectionBase ()=default
 
 ~TestProfilingConnectionBase ()=default
 
bool IsOpen () const override
 
void Close () override
 
bool WritePacket (const unsigned char *buffer, uint32_t length) override
 
- Public Member Functions inherited from IProfilingConnection
virtual ~IProfilingConnection ()
 
+ + + + +

+Additional Inherited Members

- Public Attributes inherited from TestProfilingConnectionBase
bool m_FirstCall = true
 
+

Detailed Description

+
+

Definition at line 106 of file ProfilingTests.hpp.

+

Constructor & Destructor Documentation

+ +

◆ TestProfilingConnectionTimeoutError()

+ +
+
+ + + + + +
+ + + + + + + +
TestProfilingConnectionTimeoutError ()
+
+inline
+
+ +

Definition at line 109 of file ProfilingTests.hpp.

+
110  : m_ReadRequests(0)
111  {}
+
+
+

Member Function Documentation

+ +

◆ ReadCalledCount()

+ +
+
+ + + + + +
+ + + + + + + +
int ReadCalledCount ()
+
+inline
+
+ +

Definition at line 126 of file ProfilingTests.hpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
127  {
128  return m_ReadRequests.load();
129  }
+
+
+ +

◆ ReadPacket()

+ +
+
+ + + + + +
+ + + + + + + + +
arm::pipe::Packet ReadPacket (uint32_t timeout)
+
+inlineoverridevirtual
+
+ +

Reimplemented from TestProfilingConnectionBase.

+ +

Definition at line 113 of file ProfilingTests.hpp.

+
114  {
115  // Return connection acknowledged packet after three timeouts
116  if (m_ReadRequests % 3 == 0)
117  {
118  std::this_thread::sleep_for(std::chrono::milliseconds(timeout));
119  ++m_ReadRequests;
120  throw armnn::TimeoutException("Simulate a timeout error\n");
121  }
122 
123  return arm::pipe::Packet(65536);
124  }
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1