From bfb26a1da9abe2d9a7be2e7681bc5ad78920eb76 Mon Sep 17 00:00:00 2001 From: Yitao Wang <48974769+ZjuYTW@users.noreply.github.com> Date: Wed, 17 May 2023 14:14:43 +0800 Subject: [PATCH] Fix typo (#2246) * Fix typo --------- Signed-off-by: wangyitao --- src/bthread/timer_thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bthread/timer_thread.cpp b/src/bthread/timer_thread.cpp index 238a396fc6..3b2f8a7698 100644 --- a/src/bthread/timer_thread.cpp +++ b/src/bthread/timer_thread.cpp @@ -409,13 +409,13 @@ void TimerThread::run() { // Similarly with the situation before running tasks, we check // _nearest_run_time to prevent us from waiting on a non-earliest // task. We also use the _nsignal to make sure that if new task - // is earlier that the realtime that we wait for, we'll wake up. + // is earlier than the realtime that we wait for, we'll wake up. int expected_nsignals = 0; { BAIDU_SCOPED_LOCK(_mutex); if (next_run_time > _nearest_run_time) { - // a task is earlier that what we would wait for. - // We need to check buckets. + // a task is earlier than what we would wait for. + // We need to check the buckets. continue; } else { _nearest_run_time = next_run_time;