diff options
author | Artem Nosach <ANosach@luxoft.com> | 2015-03-12 11:53:10 +0200 |
---|---|---|
committer | Artem Nosach <ANosach@luxoft.com> | 2015-04-23 15:31:33 +0300 |
commit | 4da159ed3ff7f9fcfcb277a9a27f4301598c094d (patch) | |
tree | 8ad96aaffb8c25286e6c78ac3a8bfeb4dc130c31 | |
parent | 1199df16a5ba108306caf7f5b663025e2a8d1632 (diff) | |
download | sdl_core-4da159ed3ff7f9fcfcb277a9a27f4301598c094d.tar.gz |
Remove pause() method from timer thread.
-rw-r--r-- | src/components/application_manager/src/application_manager_impl.cc | 2 | ||||
-rw-r--r-- | src/components/include/utils/timer_thread.h | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc index 44b02c7d79..296a5bd4dc 100644 --- a/src/components/application_manager/src/application_manager_impl.cc +++ b/src/components/application_manager/src/application_manager_impl.cc @@ -2758,7 +2758,7 @@ void ApplicationManagerImpl::RemoveAppFromTTSGlobalPropertiesList( LOG4CXX_INFO(logger_, "Stop tts_global_properties_timer_"); // if container is empty need to stop timer tts_global_properties_app_list_lock_.Release(); - tts_global_properties_timer_.pause(); + tts_global_properties_timer_.suspend(); return; } } diff --git a/src/components/include/utils/timer_thread.h b/src/components/include/utils/timer_thread.h index bdbe95657b..510960dba2 100644 --- a/src/components/include/utils/timer_thread.h +++ b/src/components/include/utils/timer_thread.h @@ -134,11 +134,6 @@ class TimerThread { virtual bool isRunning(); /** - * @brief method suspends timer execution - */ - virtual void pause(); - - /** * @brief Suspends timer execution after next loop. */ virtual void suspend(); @@ -301,13 +296,6 @@ bool TimerThread<T>::isRunning() { } template<class T> -void TimerThread<T>::pause() { - LOG4CXX_DEBUG(logger_, "Suspension of timer " << name_); - const uint32_t wait_seconds = std::numeric_limits<uint32_t>::max(); - updateTimeOut(wait_seconds); -} - -template<class T> void TimerThread<T>::suspend() { LOG4CXX_DEBUG(logger_, "Suspend timer " << name_ << " after next loop"); delegate_->shouldBeStoped(); |