From 4b87ce52194e32343a247eed9a1050f7299d2d9f Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 1 May 2024 08:21:05 +0000 Subject: [PATCH] fix rename Start as StartOn --- src/sled/timer/timer.cc | 4 ++-- src/sled/timer/timer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sled/timer/timer.cc b/src/sled/timer/timer.cc index 1af7fae..e1d6bce 100644 --- a/src/sled/timer/timer.cc +++ b/src/sled/timer/timer.cc @@ -71,14 +71,14 @@ Timer::Stop() } void -Timer::Start(TaskQueueBase *owner) +Timer::StartOn(TaskQueueBase *owner) { SLED_ASSERT(owner != nullptr, "owner must not be nullptr"); owner->BlockingCall([this]() { Start(); }); } void -Timer::Stop(TaskQueueBase *owner) +Timer::StopOn(TaskQueueBase *owner) { SLED_ASSERT(owner != nullptr, "owner must not be nullptr"); owner->BlockingCall([this]() { Stop(); }); diff --git a/src/sled/timer/timer.h b/src/sled/timer/timer.h index 1f0f488..05c6aa7 100644 --- a/src/sled/timer/timer.h +++ b/src/sled/timer/timer.h @@ -36,8 +36,8 @@ public: void Start(); void Stop(); - void Start(TaskQueueBase *owner); - void Stop(TaskQueueBase *owner); + void StartOn(TaskQueueBase *owner); + void StopOn(TaskQueueBase *owner); void set_duration(DurationMs duration) { duration_ = duration; }