Skip to content

Commit

Permalink
Fix typo (#2246)
Browse files Browse the repository at this point in the history
* Fix typo

---------

Signed-off-by: wangyitao <wangyitao999@outlook.com>
  • Loading branch information
ZjuYTW authored May 17, 2023
1 parent fed114a commit bfb26a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bthread/timer_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bfb26a1

Please sign in to comment.