This is an automated email from the ASF dual-hosted git repository.
leander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push:
new bfb26a1d Fix typo (#2246)
bfb26a1d is described below
commit bfb26a1da9abe2d9a7be2e7681bc5ad78920eb76
Author: Yitao Wang <[email protected]>
AuthorDate: Wed May 17 14:14:43 2023 +0800
Fix typo (#2246)
* Fix typo
---------
Signed-off-by: wangyitao <[email protected]>
---
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 238a396f..3b2f8a76 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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]