From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_command_handler_8hpp_source.xhtml | 129 +++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 20.02/_command_handler_8hpp_source.xhtml (limited to '20.02/_command_handler_8hpp_source.xhtml') diff --git a/20.02/_command_handler_8hpp_source.xhtml b/20.02/_command_handler_8hpp_source.xhtml new file mode 100644 index 0000000000..09b8b48eb2 --- /dev/null +++ b/20.02/_command_handler_8hpp_source.xhtml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/CommandHandler.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CommandHandler.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
11 
12 #include <atomic>
13 #include <thread>
14 
15 namespace armnn
16 {
17 
18 namespace profiling
19 {
20 
22 {
23 public:
24  CommandHandler(uint32_t timeout,
25  bool stopAfterTimeout,
26  CommandHandlerRegistry& commandHandlerRegistry,
27  PacketVersionResolver& packetVersionResolver)
28  : m_Timeout(timeout)
29  , m_StopAfterTimeout(stopAfterTimeout)
30  , m_IsRunning(false)
31  , m_KeepRunning(false)
32  , m_CommandThread()
33  , m_CommandHandlerRegistry(commandHandlerRegistry)
34  , m_PacketVersionResolver(packetVersionResolver)
35  {}
37 
38  void SetTimeout(uint32_t timeout) { m_Timeout.store(timeout); }
39  void SetStopAfterTimeout(bool stopAfterTimeout) { m_StopAfterTimeout.store(stopAfterTimeout); }
40 
41  void Start(IProfilingConnection& profilingConnection);
42  void Stop();
43  bool IsRunning() const { return m_IsRunning.load(); }
44 
45 private:
46  void HandleCommands(IProfilingConnection& profilingConnection);
47 
48  std::atomic<uint32_t> m_Timeout;
49  std::atomic<bool> m_StopAfterTimeout;
50  std::atomic<bool> m_IsRunning;
51  std::atomic<bool> m_KeepRunning;
52  std::thread m_CommandThread;
53 
54  CommandHandlerRegistry& m_CommandHandlerRegistry;
55  PacketVersionResolver& m_PacketVersionResolver;
56 };
57 
58 } // namespace profiling
59 
60 } // namespace armnn
+
void Start(IProfilingConnection &profilingConnection)
+ +
Copyright (c) 2020 ARM Limited.
+
DataLayout::NHWC false
+ + + + + +
void SetTimeout(uint32_t timeout)
+ + +
void SetStopAfterTimeout(bool stopAfterTimeout)
+
CommandHandler(uint32_t timeout, bool stopAfterTimeout, CommandHandlerRegistry &commandHandlerRegistry, PacketVersionResolver &packetVersionResolver)
+ +
+
+ + + + -- cgit v1.2.1