diff options
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); |