Avoid debug assert when Timer is destroyed
[platform/core/uifw/dali-adaptor.git] / adaptors / common / timer-impl.h
index 98f6f91..b5b105b 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_INTERNAL_TIMER_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 // EXTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/object/base-object.h>
-#include <timer.h>
 
 // INTERNAL INCLUDES
 #include <base/interfaces/timer-interface.h>
+#include <timer.h>
 
 namespace Dali
 {
@@ -99,6 +99,11 @@ private: // Implementation
   Timer( const Timer& );
   Timer& operator=( const Timer& );
 
+  /**
+   * Resets any stored timer data.
+   */
+  void ResetTimerData();
+
 private: // Data
 
   Dali::Timer::TimerSignalType mTickSignal;