summaryrefslogtreecommitdiff
path: root/system/common/repeating_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/common/repeating_timer.h')
-rw-r--r--system/common/repeating_timer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/common/repeating_timer.h b/system/common/repeating_timer.h
index 24eae67d09..5c2c9e3169 100644
--- a/system/common/repeating_timer.h
+++ b/system/common/repeating_timer.h
@@ -39,6 +39,9 @@ class MessageLoopThread;
class RepeatingTimer final {
public:
RepeatingTimer() : expected_time_next_task_us_(0) {}
+ RepeatingTimer(const RepeatingTimer&) = delete;
+ RepeatingTimer& operator=(const RepeatingTimer&) = delete;
+
~RepeatingTimer();
/**
@@ -85,8 +88,6 @@ class RepeatingTimer final {
void CancelClosure(std::promise<void> promise);
void RunTask();
-
- DISALLOW_COPY_AND_ASSIGN(RepeatingTimer);
};
} // namespace common