diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-07 12:35:21 +0100 |
---|---|---|
committer | Jim Flynn Arm <jim.flynn@arm.com> | 2019-10-08 08:22:51 +0000 |
commit | c2728f95086c54aa842e4c1dae8f3b5c290a72fa (patch) | |
tree | 82002c3d0c97abfeed905d0e922579dab09b2c31 /src/profiling/CommandHandler.hpp | |
parent | e61ffd00a37f02338129e92d65be2f01600014c0 (diff) | |
download | armnn-c2728f95086c54aa842e4c1dae8f3b5c290a72fa.tar.gz |
IVGCVSW-3937 Refactor and improve the CommandHandleRegistry class
* Added simplified RegisterFunctor method
* Code refactoring
* Updated the unit tests accordingly
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: Iee941d898facd9c1ab5366e87c611c99a0468830
Diffstat (limited to 'src/profiling/CommandHandler.hpp')
-rw-r--r-- | src/profiling/CommandHandler.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/profiling/CommandHandler.hpp b/src/profiling/CommandHandler.hpp index 598eabde76..0cc23429cd 100644 --- a/src/profiling/CommandHandler.hpp +++ b/src/profiling/CommandHandler.hpp @@ -35,13 +35,12 @@ public: {} ~CommandHandler() { Stop(); } + void SetTimeout(uint32_t timeout) { m_Timeout.store(timeout); } + void SetStopAfterTimeout(bool stopAfterTimeout) { m_StopAfterTimeout.store(stopAfterTimeout); } + void Start(IProfilingConnection& profilingConnection); void Stop(); - - bool IsRunning() const; - - void SetTimeout(uint32_t timeout); - void SetStopAfterTimeout(bool stopAfterTimeout); + bool IsRunning() const { return m_IsRunning.load(); } private: void HandleCommands(IProfilingConnection& profilingConnection); |